aws-cdk-lib 2.218.0__py3-none-any.whl → 2.220.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 (65) hide show
  1. aws_cdk/__init__.py +31 -36
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.218.0.jsii.tgz → aws-cdk-lib@2.220.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amazonmq/__init__.py +98 -87
  5. aws_cdk/aws_apigateway/__init__.py +39 -0
  6. aws_cdk/aws_applicationsignals/__init__.py +450 -2
  7. aws_cdk/aws_arcregionswitch/__init__.py +8 -0
  8. aws_cdk/aws_backup/__init__.py +29 -0
  9. aws_cdk/aws_batch/__init__.py +109 -7
  10. aws_cdk/aws_bcmdataexports/__init__.py +9 -0
  11. aws_cdk/aws_bedrock/__init__.py +384 -1
  12. aws_cdk/aws_bedrockagentcore/__init__.py +7862 -1568
  13. aws_cdk/aws_cloudfront/experimental/__init__.py +4 -0
  14. aws_cdk/aws_cloudfront_origins/__init__.py +87 -6
  15. aws_cdk/aws_cloudwatch/__init__.py +5 -5
  16. aws_cdk/aws_codebuild/__init__.py +339 -62
  17. aws_cdk/aws_cognito/__init__.py +6 -4
  18. aws_cdk/aws_connect/__init__.py +9 -9
  19. aws_cdk/aws_cur/__init__.py +5 -3
  20. aws_cdk/aws_datasync/__init__.py +44 -22
  21. aws_cdk/aws_datazone/__init__.py +35 -33
  22. aws_cdk/aws_dax/__init__.py +12 -3
  23. aws_cdk/aws_dms/__init__.py +3 -5
  24. aws_cdk/aws_ec2/__init__.py +2721 -30
  25. aws_cdk/aws_ecs/__init__.py +2900 -90
  26. aws_cdk/aws_eks/__init__.py +114 -9
  27. aws_cdk/aws_entityresolution/__init__.py +18 -0
  28. aws_cdk/aws_fsx/__init__.py +4 -4
  29. aws_cdk/aws_greengrassv2/__init__.py +29 -0
  30. aws_cdk/aws_imagebuilder/__init__.py +397 -0
  31. aws_cdk/aws_iotsitewise/__init__.py +136 -80
  32. aws_cdk/aws_kinesis/__init__.py +95 -4
  33. aws_cdk/aws_lambda/__init__.py +43 -0
  34. aws_cdk/aws_lightsail/__init__.py +584 -0
  35. aws_cdk/aws_logs/__init__.py +57 -0
  36. aws_cdk/aws_lookoutmetrics/__init__.py +14 -2
  37. aws_cdk/aws_m2/__init__.py +59 -13
  38. aws_cdk/aws_medialive/__init__.py +108 -0
  39. aws_cdk/aws_msk/__init__.py +4 -2
  40. aws_cdk/aws_mwaa/__init__.py +5 -5
  41. aws_cdk/aws_neptune/__init__.py +133 -70
  42. aws_cdk/aws_networkfirewall/__init__.py +6 -2
  43. aws_cdk/aws_networkmanager/__init__.py +29 -0
  44. aws_cdk/aws_observabilityadmin/__init__.py +1227 -83
  45. aws_cdk/aws_omics/__init__.py +7 -1
  46. aws_cdk/aws_opensearchservice/__init__.py +64 -0
  47. aws_cdk/aws_opsworkscm/__init__.py +0 -29
  48. aws_cdk/aws_pcs/__init__.py +224 -33
  49. aws_cdk/aws_pinpoint/__init__.py +58 -0
  50. aws_cdk/aws_quicksight/__init__.py +118 -0
  51. aws_cdk/aws_rds/__init__.py +62 -37
  52. aws_cdk/aws_refactorspaces/__init__.py +18 -6
  53. aws_cdk/aws_route53/__init__.py +138 -8
  54. aws_cdk/aws_s3/__init__.py +29 -2
  55. aws_cdk/aws_s3objectlambda/__init__.py +44 -12
  56. aws_cdk/aws_servicecatalog/__init__.py +103 -106
  57. aws_cdk/aws_smsvoice/__init__.py +319 -0
  58. aws_cdk/aws_ssmquicksetup/__init__.py +3 -3
  59. aws_cdk/aws_synthetics/__init__.py +21 -1
  60. {aws_cdk_lib-2.218.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/METADATA +2 -2
  61. {aws_cdk_lib-2.218.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/RECORD +65 -65
  62. {aws_cdk_lib-2.218.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/LICENSE +0 -0
  63. {aws_cdk_lib-2.218.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/NOTICE +0 -0
  64. {aws_cdk_lib-2.218.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/WHEEL +0 -0
  65. {aws_cdk_lib-2.218.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/top_level.txt +0 -0
@@ -2295,7 +2295,13 @@ class CfnAnnotationStore(
2295
2295
  metaclass=jsii.JSIIMeta,
2296
2296
  jsii_type="aws-cdk-lib.aws_omics.CfnAnnotationStore",
2297
2297
  ):
2298
- '''Creates an annotation store.
2298
+ '''.. epigraph::
2299
+
2300
+ AWS HealthOmics variant stores and annotation stores will no longer be open to new customers starting November 7, 2025.
2301
+
2302
+ If you would like to use variant stores or annotation stores, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see `AWS HealthOmics variant store and annotation store availability change <https://docs.aws.amazon.com/omics/latest/dev/variant-store-availability-change.html>`_ .
2303
+
2304
+ Creates an annotation store.
2299
2305
 
2300
2306
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-omics-annotationstore.html
2301
2307
  :cloudformationResource: AWS::Omics::AnnotationStore
@@ -3061,6 +3061,12 @@ class EngineVersion(
3061
3061
  '''AWS OpenSearch 2.9.'''
3062
3062
  return typing.cast("EngineVersion", jsii.sget(cls, "OPENSEARCH_2_9"))
3063
3063
 
3064
+ @jsii.python.classproperty
3065
+ @jsii.member(jsii_name="OPENSEARCH_3_1")
3066
+ def OPENSEARCH_3_1(cls) -> "EngineVersion":
3067
+ '''AWS OpenSearch 3.1.'''
3068
+ return typing.cast("EngineVersion", jsii.sget(cls, "OPENSEARCH_3_1"))
3069
+
3064
3070
  @builtins.property
3065
3071
  @jsii.member(jsii_name="version")
3066
3072
  def version(self) -> builtins.str:
@@ -6317,6 +6323,48 @@ class CfnDomain(
6317
6323
 
6318
6324
  jsii.create(self.__class__, self, [scope, id, props])
6319
6325
 
6326
+ @jsii.member(jsii_name="fromDomainArn")
6327
+ @builtins.classmethod
6328
+ def from_domain_arn(
6329
+ cls,
6330
+ scope: _constructs_77d1e7e8.Construct,
6331
+ id: builtins.str,
6332
+ arn: builtins.str,
6333
+ ) -> IDomainRef:
6334
+ '''Creates a new IDomainRef from an ARN.
6335
+
6336
+ :param scope: -
6337
+ :param id: -
6338
+ :param arn: -
6339
+ '''
6340
+ if __debug__:
6341
+ type_hints = typing.get_type_hints(_typecheckingstub__b2708216d2638c9e5c5bcbeda7fafaa1058fab53ab235b1e6a6387d5d705d8d1)
6342
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
6343
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
6344
+ check_type(argname="argument arn", value=arn, expected_type=type_hints["arn"])
6345
+ return typing.cast(IDomainRef, jsii.sinvoke(cls, "fromDomainArn", [scope, id, arn]))
6346
+
6347
+ @jsii.member(jsii_name="fromDomainName")
6348
+ @builtins.classmethod
6349
+ def from_domain_name(
6350
+ cls,
6351
+ scope: _constructs_77d1e7e8.Construct,
6352
+ id: builtins.str,
6353
+ domain_name: builtins.str,
6354
+ ) -> IDomainRef:
6355
+ '''Creates a new IDomainRef from a domainName.
6356
+
6357
+ :param scope: -
6358
+ :param id: -
6359
+ :param domain_name: -
6360
+ '''
6361
+ if __debug__:
6362
+ type_hints = typing.get_type_hints(_typecheckingstub__8aef0b900a2703d083f24bd9797f860fe581d2375f4aa106d0ea25803fd3d1d4)
6363
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
6364
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
6365
+ check_type(argname="argument domain_name", value=domain_name, expected_type=type_hints["domain_name"])
6366
+ return typing.cast(IDomainRef, jsii.sinvoke(cls, "fromDomainName", [scope, id, domain_name]))
6367
+
6320
6368
  @jsii.member(jsii_name="inspect")
6321
6369
  def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
6322
6370
  '''Examines the CloudFormation resource and discloses attributes.
@@ -11204,6 +11252,22 @@ def _typecheckingstub__6fcd2545392b3f48f314c640881e38e167b5936f1165d2eb1ce21766d
11204
11252
  """Type checking stubs"""
11205
11253
  pass
11206
11254
 
11255
+ def _typecheckingstub__b2708216d2638c9e5c5bcbeda7fafaa1058fab53ab235b1e6a6387d5d705d8d1(
11256
+ scope: _constructs_77d1e7e8.Construct,
11257
+ id: builtins.str,
11258
+ arn: builtins.str,
11259
+ ) -> None:
11260
+ """Type checking stubs"""
11261
+ pass
11262
+
11263
+ def _typecheckingstub__8aef0b900a2703d083f24bd9797f860fe581d2375f4aa106d0ea25803fd3d1d4(
11264
+ scope: _constructs_77d1e7e8.Construct,
11265
+ id: builtins.str,
11266
+ domain_name: builtins.str,
11267
+ ) -> None:
11268
+ """Type checking stubs"""
11269
+ pass
11270
+
11207
11271
  def _typecheckingstub__36055c1f3a4932ba1e8f0542c29f5149d636738c30a3d9d1bdafb864d00f2e64(
11208
11272
  inspector: _TreeInspector_488e0dd5,
11209
11273
  ) -> None:
@@ -732,27 +732,6 @@ class CfnServer(
732
732
 
733
733
  jsii.create(self.__class__, self, [scope, id, props])
734
734
 
735
- @jsii.member(jsii_name="fromServerArn")
736
- @builtins.classmethod
737
- def from_server_arn(
738
- cls,
739
- scope: _constructs_77d1e7e8.Construct,
740
- id: builtins.str,
741
- arn: builtins.str,
742
- ) -> IServerRef:
743
- '''Creates a new IServerRef from an ARN.
744
-
745
- :param scope: -
746
- :param id: -
747
- :param arn: -
748
- '''
749
- if __debug__:
750
- type_hints = typing.get_type_hints(_typecheckingstub__1d015a80f8f16aa8ba5d63ce994cedf39306d66b43a1e47d630e4643e245bda7)
751
- check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
752
- check_type(argname="argument id", value=id, expected_type=type_hints["id"])
753
- check_type(argname="argument arn", value=arn, expected_type=type_hints["arn"])
754
- return typing.cast(IServerRef, jsii.sinvoke(cls, "fromServerArn", [scope, id, arn]))
755
-
756
735
  @jsii.member(jsii_name="inspect")
757
736
  def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
758
737
  '''Examines the CloudFormation resource and discloses attributes.
@@ -1276,14 +1255,6 @@ def _typecheckingstub__4fcf3005231c62e7682797d2e25d33ceb0c0b9602a2f2ffe6a7c3dabf
1276
1255
  """Type checking stubs"""
1277
1256
  pass
1278
1257
 
1279
- def _typecheckingstub__1d015a80f8f16aa8ba5d63ce994cedf39306d66b43a1e47d630e4643e245bda7(
1280
- scope: _constructs_77d1e7e8.Construct,
1281
- id: builtins.str,
1282
- arn: builtins.str,
1283
- ) -> None:
1284
- """Type checking stubs"""
1285
- pass
1286
-
1287
1258
  def _typecheckingstub__19f2feeaf9088052d1e3d91318248757951a8853d230fb27b822589707fba494(
1288
1259
  inspector: _TreeInspector_488e0dd5,
1289
1260
  ) -> None:
@@ -301,7 +301,7 @@ class CfnComputeNodeGroupProps:
301
301
  :param subnet_ids: The list of subnet IDs where instances are provisioned by the compute node group. The subnets must be in the same VPC as the cluster.
302
302
  :param ami_id: The ID of the Amazon Machine Image (AMI) that AWS PCS uses to launch instances. If not provided, AWS PCS uses the AMI ID specified in the custom launch template.
303
303
  :param name: The name that identifies the compute node group.
304
- :param purchase_option: Specifies how EC2 instances are purchased on your behalf. AWS AWS PCS supports On-Demand and Spot instances. For more information, see `Instance purchasing options <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-purchasing-options.html>`_ in the *Amazon Elastic Compute Cloud User Guide* . If you don't provide this option, it defaults to On-Demand.
304
+ :param purchase_option: Specifies how EC2 instances are purchased on your behalf. AWS PCS supports On-Demand Instances, Spot Instances, and Amazon EC2 Capacity Blocks for ML. For more information, see `Amazon EC2 billing and purchasing options <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-purchasing-options.html>`_ in the *Amazon Elastic Compute Cloud User Guide* . For more information about AWS PCS support for Capacity Blocks, see `Using Amazon EC2 Capacity Blocks for ML with AWS PCS <https://docs.aws.amazon.com/pcs/latest/userguide/capacity-blocks.html>`_ in the *AWS PCS User Guide* . If you don't provide this option, it defaults to On-Demand.
305
305
  :param slurm_configuration: Additional options related to the Slurm scheduler.
306
306
  :param spot_options: Additional configuration when you specify ``SPOT`` as the ``purchaseOption`` for the ``CreateComputeNodeGroup`` API action.
307
307
  :param tags: 1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
@@ -480,7 +480,7 @@ class CfnComputeNodeGroupProps:
480
480
  def purchase_option(self) -> typing.Optional[builtins.str]:
481
481
  '''Specifies how EC2 instances are purchased on your behalf.
482
482
 
483
- AWS AWS PCS supports On-Demand and Spot instances. For more information, see `Instance purchasing options <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-purchasing-options.html>`_ in the *Amazon Elastic Compute Cloud User Guide* . If you don't provide this option, it defaults to On-Demand.
483
+ AWS PCS supports On-Demand Instances, Spot Instances, and Amazon EC2 Capacity Blocks for ML. For more information, see `Amazon EC2 billing and purchasing options <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-purchasing-options.html>`_ in the *Amazon Elastic Compute Cloud User Guide* . For more information about AWS PCS support for Capacity Blocks, see `Using Amazon EC2 Capacity Blocks for ML with AWS PCS <https://docs.aws.amazon.com/pcs/latest/userguide/capacity-blocks.html>`_ in the *AWS PCS User Guide* . If you don't provide this option, it defaults to On-Demand.
484
484
 
485
485
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcs-computenodegroup.html#cfn-pcs-computenodegroup-purchaseoption
486
486
  '''
@@ -539,6 +539,7 @@ class CfnComputeNodeGroupProps:
539
539
  "cluster_id": "clusterId",
540
540
  "compute_node_group_configurations": "computeNodeGroupConfigurations",
541
541
  "name": "name",
542
+ "slurm_configuration": "slurmConfiguration",
542
543
  "tags": "tags",
543
544
  },
544
545
  )
@@ -549,6 +550,7 @@ class CfnQueueProps:
549
550
  cluster_id: builtins.str,
550
551
  compute_node_group_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnQueue.ComputeNodeGroupConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
551
552
  name: typing.Optional[builtins.str] = None,
553
+ slurm_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnQueue.SlurmConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
552
554
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
553
555
  ) -> None:
554
556
  '''Properties for defining a ``CfnQueue``.
@@ -556,6 +558,7 @@ class CfnQueueProps:
556
558
  :param cluster_id: The ID of the cluster of the queue.
557
559
  :param compute_node_group_configurations: The list of compute node group configurations associated with the queue. Queues assign jobs to associated compute node groups.
558
560
  :param name: The name that identifies the queue.
561
+ :param slurm_configuration: Additional options related to the Slurm scheduler.
559
562
  :param tags: 1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
560
563
 
561
564
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcs-queue.html
@@ -575,6 +578,12 @@ class CfnQueueProps:
575
578
  compute_node_group_id="computeNodeGroupId"
576
579
  )],
577
580
  name="name",
581
+ slurm_configuration=pcs.CfnQueue.SlurmConfigurationProperty(
582
+ slurm_custom_settings=[pcs.CfnQueue.SlurmCustomSettingProperty(
583
+ parameter_name="parameterName",
584
+ parameter_value="parameterValue"
585
+ )]
586
+ ),
578
587
  tags={
579
588
  "tags_key": "tags"
580
589
  }
@@ -585,6 +594,7 @@ class CfnQueueProps:
585
594
  check_type(argname="argument cluster_id", value=cluster_id, expected_type=type_hints["cluster_id"])
586
595
  check_type(argname="argument compute_node_group_configurations", value=compute_node_group_configurations, expected_type=type_hints["compute_node_group_configurations"])
587
596
  check_type(argname="argument name", value=name, expected_type=type_hints["name"])
597
+ check_type(argname="argument slurm_configuration", value=slurm_configuration, expected_type=type_hints["slurm_configuration"])
588
598
  check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
589
599
  self._values: typing.Dict[builtins.str, typing.Any] = {
590
600
  "cluster_id": cluster_id,
@@ -593,6 +603,8 @@ class CfnQueueProps:
593
603
  self._values["compute_node_group_configurations"] = compute_node_group_configurations
594
604
  if name is not None:
595
605
  self._values["name"] = name
606
+ if slurm_configuration is not None:
607
+ self._values["slurm_configuration"] = slurm_configuration
596
608
  if tags is not None:
597
609
  self._values["tags"] = tags
598
610
 
@@ -628,6 +640,17 @@ class CfnQueueProps:
628
640
  result = self._values.get("name")
629
641
  return typing.cast(typing.Optional[builtins.str], result)
630
642
 
643
+ @builtins.property
644
+ def slurm_configuration(
645
+ self,
646
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnQueue.SlurmConfigurationProperty"]]:
647
+ '''Additional options related to the Slurm scheduler.
648
+
649
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcs-queue.html#cfn-pcs-queue-slurmconfiguration
650
+ '''
651
+ result = self._values.get("slurm_configuration")
652
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnQueue.SlurmConfigurationProperty"]], result)
653
+
631
654
  @builtins.property
632
655
  def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
633
656
  '''1 or more tags added to the resource.
@@ -1889,7 +1912,11 @@ class CfnCluster(
1889
1912
  ) -> None:
1890
1913
  '''Additional settings that directly map to Slurm settings.
1891
1914
 
1892
- :param parameter_name: AWS PCS supports configuration of the following Slurm parameters:. - For *clusters* - ```Prolog`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_Prolog_1>`_ - ```Epilog`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_Epilog_1>`_ - ```SelectTypeParameters`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_SelectTypeParameters>`_ - ```AccountingStorageEnforce`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_AccountingStorageEnforce>`_ .. epigraph:: AWS PCS supports a subset of the options for ``AccountingStorageEnforce`` . For more information, see `Slurm accounting in AWS PCS <https://docs.aws.amazon.com//pcs/latest/userguide/slurm-accounting.html>`_ in the *AWS PCS User Guide* . - For *compute node groups* - ```Weight`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_Weight>`_ - ```RealMemory`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_Weight>`_
1915
+ .. epigraph::
1916
+
1917
+ AWS PCS supports a subset of Slurm settings. For more information, see `Configuring custom Slurm settings in AWS PCS <https://docs.aws.amazon.com//pcs/latest/userguide/slurm-custom-settings.html>`_ in the *AWS PCS User Guide* .
1918
+
1919
+ :param parameter_name: AWS PCS supports custom Slurm settings for clusters, compute node groups, and queues. For more information, see `Configuring custom Slurm settings in AWS PCS <https://docs.aws.amazon.com//pcs/latest/userguide/slurm-custom-settings.html>`_ in the *AWS PCS User Guide* .
1893
1920
  :param parameter_value: The values for the configured Slurm settings.
1894
1921
 
1895
1922
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcs-cluster-slurmcustomsetting.html
@@ -1917,21 +1944,9 @@ class CfnCluster(
1917
1944
 
1918
1945
  @builtins.property
1919
1946
  def parameter_name(self) -> builtins.str:
1920
- '''AWS PCS supports configuration of the following Slurm parameters:.
1921
-
1922
- - For *clusters*
1923
- - ```Prolog`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_Prolog_1>`_
1924
- - ```Epilog`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_Epilog_1>`_
1925
- - ```SelectTypeParameters`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_SelectTypeParameters>`_
1926
- - ```AccountingStorageEnforce`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_AccountingStorageEnforce>`_
1927
-
1928
- .. epigraph::
1947
+ '''AWS PCS supports custom Slurm settings for clusters, compute node groups, and queues.
1929
1948
 
1930
- AWS PCS supports a subset of the options for ``AccountingStorageEnforce`` . For more information, see `Slurm accounting in AWS PCS <https://docs.aws.amazon.com//pcs/latest/userguide/slurm-accounting.html>`_ in the *AWS PCS User Guide* .
1931
-
1932
- - For *compute node groups*
1933
- - ```Weight`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_Weight>`_
1934
- - ```RealMemory`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_Weight>`_
1949
+ For more information, see `Configuring custom Slurm settings in AWS PCS <https://docs.aws.amazon.com//pcs/latest/userguide/slurm-custom-settings.html>`_ in the *AWS PCS User Guide* .
1935
1950
 
1936
1951
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcs-cluster-slurmcustomsetting.html#cfn-pcs-cluster-slurmcustomsetting-parametername
1937
1952
  '''
@@ -2047,7 +2062,7 @@ class CfnComputeNodeGroup(
2047
2062
  :param subnet_ids: The list of subnet IDs where instances are provisioned by the compute node group. The subnets must be in the same VPC as the cluster.
2048
2063
  :param ami_id: The ID of the Amazon Machine Image (AMI) that AWS PCS uses to launch instances. If not provided, AWS PCS uses the AMI ID specified in the custom launch template.
2049
2064
  :param name: The name that identifies the compute node group.
2050
- :param purchase_option: Specifies how EC2 instances are purchased on your behalf. AWS AWS PCS supports On-Demand and Spot instances. For more information, see `Instance purchasing options <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-purchasing-options.html>`_ in the *Amazon Elastic Compute Cloud User Guide* . If you don't provide this option, it defaults to On-Demand.
2065
+ :param purchase_option: Specifies how EC2 instances are purchased on your behalf. AWS PCS supports On-Demand Instances, Spot Instances, and Amazon EC2 Capacity Blocks for ML. For more information, see `Amazon EC2 billing and purchasing options <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-purchasing-options.html>`_ in the *Amazon Elastic Compute Cloud User Guide* . For more information about AWS PCS support for Capacity Blocks, see `Using Amazon EC2 Capacity Blocks for ML with AWS PCS <https://docs.aws.amazon.com/pcs/latest/userguide/capacity-blocks.html>`_ in the *AWS PCS User Guide* . If you don't provide this option, it defaults to On-Demand.
2051
2066
  :param slurm_configuration: Additional options related to the Slurm scheduler.
2052
2067
  :param spot_options: Additional configuration when you specify ``SPOT`` as the ``purchaseOption`` for the ``CreateComputeNodeGroup`` API action.
2053
2068
  :param tags: 1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
@@ -2695,7 +2710,11 @@ class CfnComputeNodeGroup(
2695
2710
  ) -> None:
2696
2711
  '''Additional settings that directly map to Slurm settings.
2697
2712
 
2698
- :param parameter_name: AWS PCS supports configuration of the following Slurm parameters:. - For *clusters* - ```Prolog`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_Prolog_1>`_ - ```Epilog`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_Epilog_1>`_ - ```SelectTypeParameters`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_SelectTypeParameters>`_ - ```AccountingStorageEnforce`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_AccountingStorageEnforce>`_ .. epigraph:: AWS PCS supports a subset of the options for ``AccountingStorageEnforce`` . For more information, see `Slurm accounting in AWS PCS <https://docs.aws.amazon.com//pcs/latest/userguide/slurm-accounting.html>`_ in the *AWS PCS User Guide* . - For *compute node groups* - ```Weight`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_Weight>`_ - ```RealMemory`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_Weight>`_
2713
+ .. epigraph::
2714
+
2715
+ AWS PCS supports a subset of Slurm settings. For more information, see `Configuring custom Slurm settings in AWS PCS <https://docs.aws.amazon.com//pcs/latest/userguide/slurm-custom-settings.html>`_ in the *AWS PCS User Guide* .
2716
+
2717
+ :param parameter_name: AWS PCS supports custom Slurm settings for clusters, compute node groups, and queues. For more information, see `Configuring custom Slurm settings in AWS PCS <https://docs.aws.amazon.com//pcs/latest/userguide/slurm-custom-settings.html>`_ in the *AWS PCS User Guide* .
2699
2718
  :param parameter_value: The values for the configured Slurm settings.
2700
2719
 
2701
2720
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcs-computenodegroup-slurmcustomsetting.html
@@ -2723,21 +2742,9 @@ class CfnComputeNodeGroup(
2723
2742
 
2724
2743
  @builtins.property
2725
2744
  def parameter_name(self) -> builtins.str:
2726
- '''AWS PCS supports configuration of the following Slurm parameters:.
2727
-
2728
- - For *clusters*
2729
- - ```Prolog`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_Prolog_1>`_
2730
- - ```Epilog`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_Epilog_1>`_
2731
- - ```SelectTypeParameters`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_SelectTypeParameters>`_
2732
- - ```AccountingStorageEnforce`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_AccountingStorageEnforce>`_
2745
+ '''AWS PCS supports custom Slurm settings for clusters, compute node groups, and queues.
2733
2746
 
2734
- .. epigraph::
2735
-
2736
- AWS PCS supports a subset of the options for ``AccountingStorageEnforce`` . For more information, see `Slurm accounting in AWS PCS <https://docs.aws.amazon.com//pcs/latest/userguide/slurm-accounting.html>`_ in the *AWS PCS User Guide* .
2737
-
2738
- - For *compute node groups*
2739
- - ```Weight`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_Weight>`_
2740
- - ```RealMemory`` <https://docs.aws.amazon.com/https://slurm.schedmd.com/slurm.conf.html#OPT_Weight>`_
2747
+ For more information, see `Configuring custom Slurm settings in AWS PCS <https://docs.aws.amazon.com//pcs/latest/userguide/slurm-custom-settings.html>`_ in the *AWS PCS User Guide* .
2741
2748
 
2742
2749
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcs-computenodegroup-slurmcustomsetting.html#cfn-pcs-computenodegroup-slurmcustomsetting-parametername
2743
2750
  '''
@@ -2852,6 +2859,12 @@ class CfnQueue(
2852
2859
  compute_node_group_id="computeNodeGroupId"
2853
2860
  )],
2854
2861
  name="name",
2862
+ slurm_configuration=pcs.CfnQueue.SlurmConfigurationProperty(
2863
+ slurm_custom_settings=[pcs.CfnQueue.SlurmCustomSettingProperty(
2864
+ parameter_name="parameterName",
2865
+ parameter_value="parameterValue"
2866
+ )]
2867
+ ),
2855
2868
  tags={
2856
2869
  "tags_key": "tags"
2857
2870
  }
@@ -2866,6 +2879,7 @@ class CfnQueue(
2866
2879
  cluster_id: builtins.str,
2867
2880
  compute_node_group_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnQueue.ComputeNodeGroupConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
2868
2881
  name: typing.Optional[builtins.str] = None,
2882
+ slurm_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnQueue.SlurmConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
2869
2883
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
2870
2884
  ) -> None:
2871
2885
  '''
@@ -2874,6 +2888,7 @@ class CfnQueue(
2874
2888
  :param cluster_id: The ID of the cluster of the queue.
2875
2889
  :param compute_node_group_configurations: The list of compute node group configurations associated with the queue. Queues assign jobs to associated compute node groups.
2876
2890
  :param name: The name that identifies the queue.
2891
+ :param slurm_configuration: Additional options related to the Slurm scheduler.
2877
2892
  :param tags: 1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
2878
2893
  '''
2879
2894
  if __debug__:
@@ -2884,6 +2899,7 @@ class CfnQueue(
2884
2899
  cluster_id=cluster_id,
2885
2900
  compute_node_group_configurations=compute_node_group_configurations,
2886
2901
  name=name,
2902
+ slurm_configuration=slurm_configuration,
2887
2903
  tags=tags,
2888
2904
  )
2889
2905
 
@@ -3020,6 +3036,24 @@ class CfnQueue(
3020
3036
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
3021
3037
  jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
3022
3038
 
3039
+ @builtins.property
3040
+ @jsii.member(jsii_name="slurmConfiguration")
3041
+ def slurm_configuration(
3042
+ self,
3043
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnQueue.SlurmConfigurationProperty"]]:
3044
+ '''Additional options related to the Slurm scheduler.'''
3045
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnQueue.SlurmConfigurationProperty"]], jsii.get(self, "slurmConfiguration"))
3046
+
3047
+ @slurm_configuration.setter
3048
+ def slurm_configuration(
3049
+ self,
3050
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnQueue.SlurmConfigurationProperty"]],
3051
+ ) -> None:
3052
+ if __debug__:
3053
+ type_hints = typing.get_type_hints(_typecheckingstub__8b7380033da0bbecbc38adb9cf8f52dc687fd71722aa673c38c6fb2beb4cf53c)
3054
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
3055
+ jsii.set(self, "slurmConfiguration", value) # pyright: ignore[reportArgumentType]
3056
+
3023
3057
  @builtins.property
3024
3058
  @jsii.member(jsii_name="tags")
3025
3059
  def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
@@ -3161,6 +3195,140 @@ class CfnQueue(
3161
3195
  k + "=" + repr(v) for k, v in self._values.items()
3162
3196
  )
3163
3197
 
3198
+ @jsii.data_type(
3199
+ jsii_type="aws-cdk-lib.aws_pcs.CfnQueue.SlurmConfigurationProperty",
3200
+ jsii_struct_bases=[],
3201
+ name_mapping={"slurm_custom_settings": "slurmCustomSettings"},
3202
+ )
3203
+ class SlurmConfigurationProperty:
3204
+ def __init__(
3205
+ self,
3206
+ *,
3207
+ slurm_custom_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnQueue.SlurmCustomSettingProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
3208
+ ) -> None:
3209
+ '''The Slurm configuration for the queue.
3210
+
3211
+ :param slurm_custom_settings: Custom Slurm parameters that directly map to Slurm configuration settings.
3212
+
3213
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcs-queue-slurmconfiguration.html
3214
+ :exampleMetadata: fixture=_generated
3215
+
3216
+ Example::
3217
+
3218
+ # The code below shows an example of how to instantiate this type.
3219
+ # The values are placeholders you should change.
3220
+ from aws_cdk import aws_pcs as pcs
3221
+
3222
+ slurm_configuration_property = pcs.CfnQueue.SlurmConfigurationProperty(
3223
+ slurm_custom_settings=[pcs.CfnQueue.SlurmCustomSettingProperty(
3224
+ parameter_name="parameterName",
3225
+ parameter_value="parameterValue"
3226
+ )]
3227
+ )
3228
+ '''
3229
+ if __debug__:
3230
+ type_hints = typing.get_type_hints(_typecheckingstub__28618a9f4bd71d830d18eda5c9c09bf4d7f232a6179eb690e9a3aa36984af24b)
3231
+ check_type(argname="argument slurm_custom_settings", value=slurm_custom_settings, expected_type=type_hints["slurm_custom_settings"])
3232
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
3233
+ if slurm_custom_settings is not None:
3234
+ self._values["slurm_custom_settings"] = slurm_custom_settings
3235
+
3236
+ @builtins.property
3237
+ def slurm_custom_settings(
3238
+ self,
3239
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnQueue.SlurmCustomSettingProperty"]]]]:
3240
+ '''Custom Slurm parameters that directly map to Slurm configuration settings.
3241
+
3242
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcs-queue-slurmconfiguration.html#cfn-pcs-queue-slurmconfiguration-slurmcustomsettings
3243
+ '''
3244
+ result = self._values.get("slurm_custom_settings")
3245
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnQueue.SlurmCustomSettingProperty"]]]], result)
3246
+
3247
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
3248
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
3249
+
3250
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
3251
+ return not (rhs == self)
3252
+
3253
+ def __repr__(self) -> str:
3254
+ return "SlurmConfigurationProperty(%s)" % ", ".join(
3255
+ k + "=" + repr(v) for k, v in self._values.items()
3256
+ )
3257
+
3258
+ @jsii.data_type(
3259
+ jsii_type="aws-cdk-lib.aws_pcs.CfnQueue.SlurmCustomSettingProperty",
3260
+ jsii_struct_bases=[],
3261
+ name_mapping={
3262
+ "parameter_name": "parameterName",
3263
+ "parameter_value": "parameterValue",
3264
+ },
3265
+ )
3266
+ class SlurmCustomSettingProperty:
3267
+ def __init__(
3268
+ self,
3269
+ *,
3270
+ parameter_name: builtins.str,
3271
+ parameter_value: builtins.str,
3272
+ ) -> None:
3273
+ '''Additional settings that directly map to Slurm settings.
3274
+
3275
+ :param parameter_name: AWS PCS supports configuration of the Slurm parameters for queues:.
3276
+ :param parameter_value: The value for the configured Slurm setting.
3277
+
3278
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcs-queue-slurmcustomsetting.html
3279
+ :exampleMetadata: fixture=_generated
3280
+
3281
+ Example::
3282
+
3283
+ # The code below shows an example of how to instantiate this type.
3284
+ # The values are placeholders you should change.
3285
+ from aws_cdk import aws_pcs as pcs
3286
+
3287
+ slurm_custom_setting_property = pcs.CfnQueue.SlurmCustomSettingProperty(
3288
+ parameter_name="parameterName",
3289
+ parameter_value="parameterValue"
3290
+ )
3291
+ '''
3292
+ if __debug__:
3293
+ type_hints = typing.get_type_hints(_typecheckingstub__4b79818f0e6641251312f7d3e9ef610148d1b07122021df8e1de03465c51222b)
3294
+ check_type(argname="argument parameter_name", value=parameter_name, expected_type=type_hints["parameter_name"])
3295
+ check_type(argname="argument parameter_value", value=parameter_value, expected_type=type_hints["parameter_value"])
3296
+ self._values: typing.Dict[builtins.str, typing.Any] = {
3297
+ "parameter_name": parameter_name,
3298
+ "parameter_value": parameter_value,
3299
+ }
3300
+
3301
+ @builtins.property
3302
+ def parameter_name(self) -> builtins.str:
3303
+ '''AWS PCS supports configuration of the Slurm parameters for queues:.
3304
+
3305
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcs-queue-slurmcustomsetting.html#cfn-pcs-queue-slurmcustomsetting-parametername
3306
+ '''
3307
+ result = self._values.get("parameter_name")
3308
+ assert result is not None, "Required property 'parameter_name' is missing"
3309
+ return typing.cast(builtins.str, result)
3310
+
3311
+ @builtins.property
3312
+ def parameter_value(self) -> builtins.str:
3313
+ '''The value for the configured Slurm setting.
3314
+
3315
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcs-queue-slurmcustomsetting.html#cfn-pcs-queue-slurmcustomsetting-parametervalue
3316
+ '''
3317
+ result = self._values.get("parameter_value")
3318
+ assert result is not None, "Required property 'parameter_value' is missing"
3319
+ return typing.cast(builtins.str, result)
3320
+
3321
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
3322
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
3323
+
3324
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
3325
+ return not (rhs == self)
3326
+
3327
+ def __repr__(self) -> str:
3328
+ return "SlurmCustomSettingProperty(%s)" % ", ".join(
3329
+ k + "=" + repr(v) for k, v in self._values.items()
3330
+ )
3331
+
3164
3332
 
3165
3333
  __all__ = [
3166
3334
  "CfnCluster",
@@ -3214,6 +3382,7 @@ def _typecheckingstub__4211e23057aa9883cd55dc7f797abf7f4ad0554424bd2d7d7cfce1230
3214
3382
  cluster_id: builtins.str,
3215
3383
  compute_node_group_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnQueue.ComputeNodeGroupConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
3216
3384
  name: typing.Optional[builtins.str] = None,
3385
+ slurm_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnQueue.SlurmConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
3217
3386
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
3218
3387
  ) -> None:
3219
3388
  """Type checking stubs"""
@@ -3536,6 +3705,7 @@ def _typecheckingstub__456edeb02414f262683a35f15a1fae223f92feec590d98024478f680e
3536
3705
  cluster_id: builtins.str,
3537
3706
  compute_node_group_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnQueue.ComputeNodeGroupConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
3538
3707
  name: typing.Optional[builtins.str] = None,
3708
+ slurm_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnQueue.SlurmConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
3539
3709
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
3540
3710
  ) -> None:
3541
3711
  """Type checking stubs"""
@@ -3571,6 +3741,12 @@ def _typecheckingstub__7e4f1e9c61fd11b4d3ed4834db791c7064b5408b742dfa6c4a00a2428
3571
3741
  """Type checking stubs"""
3572
3742
  pass
3573
3743
 
3744
+ def _typecheckingstub__8b7380033da0bbecbc38adb9cf8f52dc687fd71722aa673c38c6fb2beb4cf53c(
3745
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnQueue.SlurmConfigurationProperty]],
3746
+ ) -> None:
3747
+ """Type checking stubs"""
3748
+ pass
3749
+
3574
3750
  def _typecheckingstub__31674031b3f2a49a29efb9edfdb5a54431db3db7616989edd3617113cd6b9afd(
3575
3751
  value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
3576
3752
  ) -> None:
@@ -3591,3 +3767,18 @@ def _typecheckingstub__5e51eb0cec81203da74b9b3c33259135afec8fef04327498ab79338af
3591
3767
  ) -> None:
3592
3768
  """Type checking stubs"""
3593
3769
  pass
3770
+
3771
+ def _typecheckingstub__28618a9f4bd71d830d18eda5c9c09bf4d7f232a6179eb690e9a3aa36984af24b(
3772
+ *,
3773
+ slurm_custom_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnQueue.SlurmCustomSettingProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
3774
+ ) -> None:
3775
+ """Type checking stubs"""
3776
+ pass
3777
+
3778
+ def _typecheckingstub__4b79818f0e6641251312f7d3e9ef610148d1b07122021df8e1de03465c51222b(
3779
+ *,
3780
+ parameter_name: builtins.str,
3781
+ parameter_value: builtins.str,
3782
+ ) -> None:
3783
+ """Type checking stubs"""
3784
+ pass
@@ -12694,6 +12694,48 @@ class CfnInAppTemplate(
12694
12694
 
12695
12695
  jsii.create(self.__class__, self, [scope, id, props])
12696
12696
 
12697
+ @jsii.member(jsii_name="fromInAppTemplateArn")
12698
+ @builtins.classmethod
12699
+ def from_in_app_template_arn(
12700
+ cls,
12701
+ scope: _constructs_77d1e7e8.Construct,
12702
+ id: builtins.str,
12703
+ arn: builtins.str,
12704
+ ) -> IInAppTemplateRef:
12705
+ '''Creates a new IInAppTemplateRef from an ARN.
12706
+
12707
+ :param scope: -
12708
+ :param id: -
12709
+ :param arn: -
12710
+ '''
12711
+ if __debug__:
12712
+ type_hints = typing.get_type_hints(_typecheckingstub__7898da1bc1151a8ef759559d1854b73041f5d2282451650929579ba04d1f3295)
12713
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
12714
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
12715
+ check_type(argname="argument arn", value=arn, expected_type=type_hints["arn"])
12716
+ return typing.cast(IInAppTemplateRef, jsii.sinvoke(cls, "fromInAppTemplateArn", [scope, id, arn]))
12717
+
12718
+ @jsii.member(jsii_name="fromTemplateName")
12719
+ @builtins.classmethod
12720
+ def from_template_name(
12721
+ cls,
12722
+ scope: _constructs_77d1e7e8.Construct,
12723
+ id: builtins.str,
12724
+ template_name: builtins.str,
12725
+ ) -> IInAppTemplateRef:
12726
+ '''Creates a new IInAppTemplateRef from a templateName.
12727
+
12728
+ :param scope: -
12729
+ :param id: -
12730
+ :param template_name: -
12731
+ '''
12732
+ if __debug__:
12733
+ type_hints = typing.get_type_hints(_typecheckingstub__d7b18c106fd9cdd4eb2f80462ee07f46c1193e5bbc2167e38667b0ad2fdcbaf1)
12734
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
12735
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
12736
+ check_type(argname="argument template_name", value=template_name, expected_type=type_hints["template_name"])
12737
+ return typing.cast(IInAppTemplateRef, jsii.sinvoke(cls, "fromTemplateName", [scope, id, template_name]))
12738
+
12697
12739
  @jsii.member(jsii_name="inspect")
12698
12740
  def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
12699
12741
  '''Examines the CloudFormation resource and discloses attributes.
@@ -18130,6 +18172,22 @@ def _typecheckingstub__e512a1e228b31487f3066dd3e4275e9158997062fd71387d46ccec376
18130
18172
  """Type checking stubs"""
18131
18173
  pass
18132
18174
 
18175
+ def _typecheckingstub__7898da1bc1151a8ef759559d1854b73041f5d2282451650929579ba04d1f3295(
18176
+ scope: _constructs_77d1e7e8.Construct,
18177
+ id: builtins.str,
18178
+ arn: builtins.str,
18179
+ ) -> None:
18180
+ """Type checking stubs"""
18181
+ pass
18182
+
18183
+ def _typecheckingstub__d7b18c106fd9cdd4eb2f80462ee07f46c1193e5bbc2167e38667b0ad2fdcbaf1(
18184
+ scope: _constructs_77d1e7e8.Construct,
18185
+ id: builtins.str,
18186
+ template_name: builtins.str,
18187
+ ) -> None:
18188
+ """Type checking stubs"""
18189
+ pass
18190
+
18133
18191
  def _typecheckingstub__cb5b14ad185ba48d75f55570e3ad1a13d78e14254d3beb52e4d282f7011b5af3(
18134
18192
  inspector: _TreeInspector_488e0dd5,
18135
18193
  ) -> None: