aws-cdk-lib 2.202.0__py3-none-any.whl → 2.203.1__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 (62) hide show
  1. aws_cdk/__init__.py +46 -47
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.202.0.jsii.tgz → aws-cdk-lib@2.203.1.jsii.tgz} +0 -0
  4. aws_cdk/aws_accessanalyzer/__init__.py +310 -4
  5. aws_cdk/aws_aiops/__init__.py +964 -0
  6. aws_cdk/aws_amplify/__init__.py +127 -0
  7. aws_cdk/aws_arczonalshift/__init__.py +8 -8
  8. aws_cdk/aws_b2bi/__init__.py +782 -3
  9. aws_cdk/aws_backup/__init__.py +22 -0
  10. aws_cdk/aws_batch/__init__.py +53 -1
  11. aws_cdk/aws_bedrock/__init__.py +123 -9
  12. aws_cdk/aws_cleanrooms/__init__.py +157 -154
  13. aws_cdk/aws_cloudformation/__init__.py +28 -28
  14. aws_cdk/aws_cloudfront/__init__.py +61 -18
  15. aws_cdk/aws_cloudfront/experimental/__init__.py +37 -3
  16. aws_cdk/aws_cloudwatch/__init__.py +228 -2
  17. aws_cdk/aws_connect/__init__.py +120 -8
  18. aws_cdk/aws_connectcampaignsv2/__init__.py +25 -4
  19. aws_cdk/aws_customerprofiles/__init__.py +140 -20
  20. aws_cdk/aws_datazone/__init__.py +23 -4
  21. aws_cdk/aws_deadline/__init__.py +4 -4
  22. aws_cdk/aws_dsql/__init__.py +148 -0
  23. aws_cdk/aws_ec2/__init__.py +159 -7
  24. aws_cdk/aws_ecr/__init__.py +3 -3
  25. aws_cdk/aws_ecs/__init__.py +48 -13
  26. aws_cdk/aws_elasticloadbalancingv2/__init__.py +4 -2
  27. aws_cdk/aws_emrserverless/__init__.py +118 -0
  28. aws_cdk/aws_fsx/__init__.py +891 -0
  29. aws_cdk/aws_iam/__init__.py +8 -8
  30. aws_cdk/aws_inspectorv2/__init__.py +442 -3
  31. aws_cdk/aws_kendra/__init__.py +10 -5
  32. aws_cdk/aws_kms/__init__.py +14 -8
  33. aws_cdk/aws_lambda/__init__.py +191 -24
  34. aws_cdk/aws_lambda_nodejs/__init__.py +37 -3
  35. aws_cdk/aws_lex/__init__.py +703 -0
  36. aws_cdk/aws_logs/__init__.py +144 -0
  37. aws_cdk/aws_mediatailor/__init__.py +399 -0
  38. aws_cdk/aws_mpa/__init__.py +1475 -0
  39. aws_cdk/aws_networkfirewall/__init__.py +4 -2
  40. aws_cdk/aws_networkmanager/__init__.py +51 -3
  41. aws_cdk/aws_opsworkscm/__init__.py +44 -2
  42. aws_cdk/aws_rds/__init__.py +171 -41
  43. aws_cdk/aws_redshiftserverless/__init__.py +632 -0
  44. aws_cdk/aws_route53resolver/__init__.py +58 -10
  45. aws_cdk/aws_s3/__init__.py +3 -1
  46. aws_cdk/aws_s3tables/__init__.py +230 -0
  47. aws_cdk/aws_sagemaker/__init__.py +6 -2
  48. aws_cdk/aws_securityhub/__init__.py +2887 -56
  49. aws_cdk/aws_synthetics/__init__.py +21 -0
  50. aws_cdk/aws_vpclattice/__init__.py +6 -4
  51. aws_cdk/aws_wafv2/__init__.py +156 -51
  52. aws_cdk/aws_workspacesinstances/__init__.py +3243 -0
  53. aws_cdk/cloud_assembly_schema/__init__.py +200 -4
  54. aws_cdk/cx_api/__init__.py +15 -14
  55. aws_cdk/pipelines/__init__.py +31 -3
  56. aws_cdk/triggers/__init__.py +41 -4
  57. {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.1.dist-info}/METADATA +3 -3
  58. {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.1.dist-info}/RECORD +62 -59
  59. {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.1.dist-info}/LICENSE +0 -0
  60. {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.1.dist-info}/NOTICE +0 -0
  61. {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.1.dist-info}/WHEEL +0 -0
  62. {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.1.dist-info}/top_level.txt +0 -0
@@ -86,6 +86,7 @@ plan.add_selection("Selection",
86
86
  To add rules to a plan, use `addRule()`:
87
87
 
88
88
  ```python
89
+ from aws_cdk import TimeZone
89
90
  # plan: backup.BackupPlan
90
91
 
91
92
  plan.add_rule(backup.BackupPlanRule(
@@ -95,6 +96,7 @@ plan.add_rule(backup.BackupPlanRule(
95
96
  day="15",
96
97
  hour="3",
97
98
  minute="30"),
99
+ schedule_expression_timezone=TimeZone.ETC_UTC,
98
100
  move_to_cold_storage_after=Duration.days(30)
99
101
  ))
100
102
  ```
@@ -304,6 +306,7 @@ from .. import (
304
306
  RemovalPolicy as _RemovalPolicy_9f93c814,
305
307
  Resource as _Resource_45bc6135,
306
308
  TagManager as _TagManager_0a598cb3,
309
+ TimeZone as _TimeZone_cdd72ac9,
307
310
  TreeInspector as _TreeInspector_488e0dd5,
308
311
  )
309
312
  from ..aws_dynamodb import ITable as _ITable_504fd401
@@ -557,6 +560,7 @@ class BackupPlanRule(
557
560
  recovery_point_tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
558
561
  rule_name: typing.Optional[builtins.str] = None,
559
562
  schedule_expression: typing.Optional[_Schedule_c151d01f] = None,
563
+ schedule_expression_timezone: typing.Optional[_TimeZone_cdd72ac9] = None,
560
564
  start_window: typing.Optional[_Duration_4839e8c3] = None,
561
565
  ) -> None:
562
566
  '''
@@ -569,6 +573,7 @@ class BackupPlanRule(
569
573
  :param recovery_point_tags: To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair. Default: - no recovery point tags.
570
574
  :param rule_name: A display name for the backup rule. Default: - a CDK generated name
571
575
  :param schedule_expression: A CRON expression specifying when AWS Backup initiates a backup job. Default: - no schedule
576
+ :param schedule_expression_timezone: The timezone in which the schedule expression is set. Default: - UTC
572
577
  :param start_window: The duration after a backup is scheduled before a job is canceled if it doesn't start successfully. Default: - 8 hours
573
578
  '''
574
579
  props = BackupPlanRuleProps(
@@ -581,6 +586,7 @@ class BackupPlanRule(
581
586
  recovery_point_tags=recovery_point_tags,
582
587
  rule_name=rule_name,
583
588
  schedule_expression=schedule_expression,
589
+ schedule_expression_timezone=schedule_expression_timezone,
584
590
  start_window=start_window,
585
591
  )
586
592
 
@@ -681,6 +687,7 @@ class BackupPlanRule(
681
687
  "recovery_point_tags": "recoveryPointTags",
682
688
  "rule_name": "ruleName",
683
689
  "schedule_expression": "scheduleExpression",
690
+ "schedule_expression_timezone": "scheduleExpressionTimezone",
684
691
  "start_window": "startWindow",
685
692
  },
686
693
  )
@@ -697,6 +704,7 @@ class BackupPlanRuleProps:
697
704
  recovery_point_tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
698
705
  rule_name: typing.Optional[builtins.str] = None,
699
706
  schedule_expression: typing.Optional[_Schedule_c151d01f] = None,
707
+ schedule_expression_timezone: typing.Optional[_TimeZone_cdd72ac9] = None,
700
708
  start_window: typing.Optional[_Duration_4839e8c3] = None,
701
709
  ) -> None:
702
710
  '''Properties for a BackupPlanRule.
@@ -710,6 +718,7 @@ class BackupPlanRuleProps:
710
718
  :param recovery_point_tags: To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair. Default: - no recovery point tags.
711
719
  :param rule_name: A display name for the backup rule. Default: - a CDK generated name
712
720
  :param schedule_expression: A CRON expression specifying when AWS Backup initiates a backup job. Default: - no schedule
721
+ :param schedule_expression_timezone: The timezone in which the schedule expression is set. Default: - UTC
713
722
  :param start_window: The duration after a backup is scheduled before a job is canceled if it doesn't start successfully. Default: - 8 hours
714
723
 
715
724
  :exampleMetadata: infused
@@ -738,6 +747,7 @@ class BackupPlanRuleProps:
738
747
  check_type(argname="argument recovery_point_tags", value=recovery_point_tags, expected_type=type_hints["recovery_point_tags"])
739
748
  check_type(argname="argument rule_name", value=rule_name, expected_type=type_hints["rule_name"])
740
749
  check_type(argname="argument schedule_expression", value=schedule_expression, expected_type=type_hints["schedule_expression"])
750
+ check_type(argname="argument schedule_expression_timezone", value=schedule_expression_timezone, expected_type=type_hints["schedule_expression_timezone"])
741
751
  check_type(argname="argument start_window", value=start_window, expected_type=type_hints["start_window"])
742
752
  self._values: typing.Dict[builtins.str, typing.Any] = {}
743
753
  if backup_vault is not None:
@@ -758,6 +768,8 @@ class BackupPlanRuleProps:
758
768
  self._values["rule_name"] = rule_name
759
769
  if schedule_expression is not None:
760
770
  self._values["schedule_expression"] = schedule_expression
771
+ if schedule_expression_timezone is not None:
772
+ self._values["schedule_expression_timezone"] = schedule_expression_timezone
761
773
  if start_window is not None:
762
774
  self._values["start_window"] = start_window
763
775
 
@@ -856,6 +868,15 @@ class BackupPlanRuleProps:
856
868
  result = self._values.get("schedule_expression")
857
869
  return typing.cast(typing.Optional[_Schedule_c151d01f], result)
858
870
 
871
+ @builtins.property
872
+ def schedule_expression_timezone(self) -> typing.Optional[_TimeZone_cdd72ac9]:
873
+ '''The timezone in which the schedule expression is set.
874
+
875
+ :default: - UTC
876
+ '''
877
+ result = self._values.get("schedule_expression_timezone")
878
+ return typing.cast(typing.Optional[_TimeZone_cdd72ac9], result)
879
+
859
880
  @builtins.property
860
881
  def start_window(self) -> typing.Optional[_Duration_4839e8c3]:
861
882
  '''The duration after a backup is scheduled before a job is canceled if it doesn't start successfully.
@@ -7714,6 +7735,7 @@ def _typecheckingstub__521e43eca71db1c8347b5dbf1e88135cbc1fd43f07248784b33b55d83
7714
7735
  recovery_point_tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
7715
7736
  rule_name: typing.Optional[builtins.str] = None,
7716
7737
  schedule_expression: typing.Optional[_Schedule_c151d01f] = None,
7738
+ schedule_expression_timezone: typing.Optional[_TimeZone_cdd72ac9] = None,
7717
7739
  start_window: typing.Optional[_Duration_4839e8c3] = None,
7718
7740
  ) -> None:
7719
7741
  """Type checking stubs"""
@@ -970,8 +970,10 @@ class CfnComputeEnvironment(
970
970
  launch_template_id="launchTemplateId",
971
971
  launch_template_name="launchTemplateName",
972
972
  target_instance_types=["targetInstanceTypes"],
973
+ userdata_type="userdataType",
973
974
  version="version"
974
975
  )],
976
+ userdata_type="userdataType",
975
977
  version="version"
976
978
  ),
977
979
  minv_cpus=123,
@@ -1376,8 +1378,10 @@ class CfnComputeEnvironment(
1376
1378
  launch_template_id="launchTemplateId",
1377
1379
  launch_template_name="launchTemplateName",
1378
1380
  target_instance_types=["targetInstanceTypes"],
1381
+ userdata_type="userdataType",
1379
1382
  version="version"
1380
1383
  )],
1384
+ userdata_type="userdataType",
1381
1385
  version="version"
1382
1386
  ),
1383
1387
  minv_cpus=123,
@@ -1785,7 +1789,7 @@ class CfnComputeEnvironment(
1785
1789
 
1786
1790
  This object isn't applicable to jobs that are running on Fargate resources.
1787
1791
 
1788
- :param image_type: The image type to match with the instance type to select an AMI. The supported values are different for ``ECS`` and ``EKS`` resources. - **ECS** - If the ``imageIdOverride`` parameter isn't specified, then a recent `Amazon ECS-optimized Amazon Linux 2 AMI <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami>`_ ( ``ECS_AL2`` ) is used. If a new image type is specified in an update, but neither an ``imageId`` nor a ``imageIdOverride`` parameter is specified, then the latest Amazon ECS optimized AMI for that image type that's supported by AWS Batch is used. - **ECS_AL2** - `Amazon Linux 2 <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami>`_ : Default for all non-GPU instance families. - **ECS_AL2_NVIDIA** - `Amazon Linux 2 (GPU) <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#gpuami>`_ : Default for all GPU instance families (for example ``P4`` and ``G4`` ) and can be used for all non AWS Graviton-based instance types. - **ECS_AL2023** - `Amazon Linux 2023 <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html>`_ : AWS Batch supports Amazon Linux 2023. .. epigraph:: Amazon Linux 2023 does not support ``A1`` instances. - **ECS_AL1** - `Amazon Linux <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami>`_ . Amazon Linux has reached the end-of-life of standard support. For more information, see `Amazon Linux AMI <https://docs.aws.amazon.com/amazon-linux-ami/>`_ . - **EKS** - If the ``imageIdOverride`` parameter isn't specified, then a recent `Amazon EKS-optimized Amazon Linux AMI <https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html>`_ ( ``EKS_AL2`` ) is used. If a new image type is specified in an update, but neither an ``imageId`` nor a ``imageIdOverride`` parameter is specified, then the latest Amazon EKS optimized AMI for that image type that AWS Batch supports is used. - **EKS_AL2** - `Amazon Linux 2 <https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html>`_ : Default for all non-GPU instance families. - **EKS_AL2_NVIDIA** - `Amazon Linux 2 (accelerated) <https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html>`_ : Default for all GPU instance families (for example, ``P4`` and ``G4`` ) and can be used for all non AWS Graviton-based instance types.
1792
+ :param image_type: The image type to match with the instance type to select an AMI. The supported values are different for ``ECS`` and ``EKS`` resources. - **ECS** - If the ``imageIdOverride`` parameter isn't specified, then a recent `Amazon ECS-optimized Amazon Linux 2 AMI <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami>`_ ( ``ECS_AL2`` ) is used. If a new image type is specified in an update, but neither an ``imageId`` nor a ``imageIdOverride`` parameter is specified, then the latest Amazon ECS optimized AMI for that image type that's supported by AWS Batch is used. - **ECS_AL2** - `Amazon Linux 2 <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami>`_ : Default for all non-GPU instance families. - **ECS_AL2_NVIDIA** - `Amazon Linux 2 (GPU) <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#gpuami>`_ : Default for all GPU instance families (for example ``P4`` and ``G4`` ) and can be used for all non AWS Graviton-based instance types. - **ECS_AL2023** - `Amazon Linux 2023 <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html>`_ : AWS Batch supports Amazon Linux 2023. .. epigraph:: Amazon Linux 2023 does not support ``A1`` instances. - **ECS_AL1** - `Amazon Linux <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami>`_ . Amazon Linux has reached the end-of-life of standard support. For more information, see `Amazon Linux AMI <https://docs.aws.amazon.com/amazon-linux-ami/>`_ . - **EKS** - If the ``imageIdOverride`` parameter isn't specified, then a recent `Amazon EKS-optimized Amazon Linux AMI <https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html>`_ ( ``EKS_AL2`` ) is used. If a new image type is specified in an update, but neither an ``imageId`` nor a ``imageIdOverride`` parameter is specified, then the latest Amazon EKS optimized AMI for that image type that AWS Batch supports is used. - **EKS_AL2** - `Amazon Linux 2 <https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html>`_ : Default for all non-GPU instance families. - **EKS_AL2_NVIDIA** - `Amazon Linux 2 (accelerated) <https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html>`_ : Default for all GPU instance families (for example, ``P4`` and ``G4`` ) and can be used for all non AWS Graviton-based instance types. - **EKS_AL2023** - `Amazon Linux 2023 <https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html>`_ : AWS Batch supports Amazon Linux 2023. .. epigraph:: Amazon Linux 2023 does not support ``A1`` instances. - **EKS_AL2023_NVIDIA** - `Amazon Linux 2023 (accelerated) <https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html>`_ : GPU instance families and can be used for all non AWS Graviton-based instance types.
1789
1793
  :param image_id_override: The AMI ID used for instances launched in the compute environment that match the image type. This setting overrides the ``imageId`` set in the ``computeResource`` object. .. epigraph:: The AMI that you choose for a compute environment must match the architecture of the instance types that you intend to use for that compute environment. For example, if your compute environment uses A1 instance types, the compute resource AMI that you choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see `Amazon ECS-optimized Amazon Linux 2 AMI <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#ecs-optimized-ami-linux-variants.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
1790
1794
  :param image_kubernetes_version: The Kubernetes version for the compute environment. If you don't specify a value, the latest version that AWS Batch supports is used.
1791
1795
 
@@ -1838,6 +1842,13 @@ class CfnComputeEnvironment(
1838
1842
  - **EKS** - If the ``imageIdOverride`` parameter isn't specified, then a recent `Amazon EKS-optimized Amazon Linux AMI <https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html>`_ ( ``EKS_AL2`` ) is used. If a new image type is specified in an update, but neither an ``imageId`` nor a ``imageIdOverride`` parameter is specified, then the latest Amazon EKS optimized AMI for that image type that AWS Batch supports is used.
1839
1843
  - **EKS_AL2** - `Amazon Linux 2 <https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html>`_ : Default for all non-GPU instance families.
1840
1844
  - **EKS_AL2_NVIDIA** - `Amazon Linux 2 (accelerated) <https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html>`_ : Default for all GPU instance families (for example, ``P4`` and ``G4`` ) and can be used for all non AWS Graviton-based instance types.
1845
+ - **EKS_AL2023** - `Amazon Linux 2023 <https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html>`_ : AWS Batch supports Amazon Linux 2023.
1846
+
1847
+ .. epigraph::
1848
+
1849
+ Amazon Linux 2023 does not support ``A1`` instances.
1850
+
1851
+ - **EKS_AL2023_NVIDIA** - `Amazon Linux 2023 (accelerated) <https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html>`_ : GPU instance families and can be used for all non AWS Graviton-based instance types.
1841
1852
 
1842
1853
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-ec2configurationobject.html#cfn-batch-computeenvironment-ec2configurationobject-imagetype
1843
1854
  '''
@@ -1968,6 +1979,7 @@ class CfnComputeEnvironment(
1968
1979
  "launch_template_id": "launchTemplateId",
1969
1980
  "launch_template_name": "launchTemplateName",
1970
1981
  "target_instance_types": "targetInstanceTypes",
1982
+ "userdata_type": "userdataType",
1971
1983
  "version": "version",
1972
1984
  },
1973
1985
  )
@@ -1978,6 +1990,7 @@ class CfnComputeEnvironment(
1978
1990
  launch_template_id: typing.Optional[builtins.str] = None,
1979
1991
  launch_template_name: typing.Optional[builtins.str] = None,
1980
1992
  target_instance_types: typing.Optional[typing.Sequence[builtins.str]] = None,
1993
+ userdata_type: typing.Optional[builtins.str] = None,
1981
1994
  version: typing.Optional[builtins.str] = None,
1982
1995
  ) -> None:
1983
1996
  '''An object that represents a launch template to use in place of the default launch template.
@@ -1994,6 +2007,7 @@ class CfnComputeEnvironment(
1994
2007
  :param launch_template_id: The ID of the launch template. *Note:* If you specify the ``launchTemplateId`` you can't specify the ``launchTemplateName`` as well.
1995
2008
  :param launch_template_name: The name of the launch template. *Note:* If you specify the ``launchTemplateName`` you can't specify the ``launchTemplateId`` as well.
1996
2009
  :param target_instance_types: The instance type or family that this override launch template should be applied to. This parameter is required when defining a launch template override. Information included in this parameter must meet the following requirements: - Must be a valid Amazon EC2 instance type or family. - ``optimal`` isn't allowed. - ``targetInstanceTypes`` can target only instance types and families that are included within the ```ComputeResource.instanceTypes`` <https://docs.aws.amazon.com/batch/latest/APIReference/API_ComputeResource.html#Batch-Type-ComputeResource-instanceTypes>`_ set. ``targetInstanceTypes`` doesn't need to include all of the instances from the ``instanceType`` set, but at least a subset. For example, if ``ComputeResource.instanceTypes`` includes ``[m5, g5]`` , ``targetInstanceTypes`` can include ``[m5.2xlarge]`` and ``[m5.large]`` but not ``[c5.large]`` . - ``targetInstanceTypes`` included within the same launch template override or across launch template overrides can't overlap for the same compute environment. For example, you can't define one launch template override to target an instance family and another define an instance type within this same family.
2010
+ :param userdata_type: The EKS node initialization process to use. You only need to specify this value if you are using a custom AMI. The default value is ``EKS_BOOTSTRAP_SH`` . If *imageType* is a custom AMI based on EKS_AL2023 or EKS_AL2023_NVIDIA then you must choose ``EKS_NODEADM`` .
1997
2011
  :param version: The version number of the launch template, ``$Default`` , or ``$Latest`` . If the value is ``$Default`` , the default version of the launch template is used. If the value is ``$Latest`` , the latest version of the launch template is used. .. epigraph:: If the AMI ID that's used in a compute environment is from the launch template, the AMI isn't changed when the compute environment is updated. It's only changed if the ``updateToLatestImageVersion`` parameter for the compute environment is set to ``true`` . During an infrastructure update, if either ``$Default`` or ``$Latest`` is specified, AWS Batch re-evaluates the launch template version, and it might use a different version of the launch template. This is the case even if the launch template isn't specified in the update. When updating a compute environment, changing the launch template requires an infrastructure update of the compute environment. For more information, see `Updating compute environments <https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html>`_ in the *AWS Batch User Guide* . Default: ``$Default`` Latest: ``$Latest``
1998
2012
 
1999
2013
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-launchtemplatespecificationoverride.html
@@ -2009,6 +2023,7 @@ class CfnComputeEnvironment(
2009
2023
  launch_template_id="launchTemplateId",
2010
2024
  launch_template_name="launchTemplateName",
2011
2025
  target_instance_types=["targetInstanceTypes"],
2026
+ userdata_type="userdataType",
2012
2027
  version="version"
2013
2028
  )
2014
2029
  '''
@@ -2017,6 +2032,7 @@ class CfnComputeEnvironment(
2017
2032
  check_type(argname="argument launch_template_id", value=launch_template_id, expected_type=type_hints["launch_template_id"])
2018
2033
  check_type(argname="argument launch_template_name", value=launch_template_name, expected_type=type_hints["launch_template_name"])
2019
2034
  check_type(argname="argument target_instance_types", value=target_instance_types, expected_type=type_hints["target_instance_types"])
2035
+ check_type(argname="argument userdata_type", value=userdata_type, expected_type=type_hints["userdata_type"])
2020
2036
  check_type(argname="argument version", value=version, expected_type=type_hints["version"])
2021
2037
  self._values: typing.Dict[builtins.str, typing.Any] = {}
2022
2038
  if launch_template_id is not None:
@@ -2025,6 +2041,8 @@ class CfnComputeEnvironment(
2025
2041
  self._values["launch_template_name"] = launch_template_name
2026
2042
  if target_instance_types is not None:
2027
2043
  self._values["target_instance_types"] = target_instance_types
2044
+ if userdata_type is not None:
2045
+ self._values["userdata_type"] = userdata_type
2028
2046
  if version is not None:
2029
2047
  self._values["version"] = version
2030
2048
 
@@ -2068,6 +2086,17 @@ class CfnComputeEnvironment(
2068
2086
  result = self._values.get("target_instance_types")
2069
2087
  return typing.cast(typing.Optional[typing.List[builtins.str]], result)
2070
2088
 
2089
+ @builtins.property
2090
+ def userdata_type(self) -> typing.Optional[builtins.str]:
2091
+ '''The EKS node initialization process to use.
2092
+
2093
+ You only need to specify this value if you are using a custom AMI. The default value is ``EKS_BOOTSTRAP_SH`` . If *imageType* is a custom AMI based on EKS_AL2023 or EKS_AL2023_NVIDIA then you must choose ``EKS_NODEADM`` .
2094
+
2095
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-launchtemplatespecificationoverride.html#cfn-batch-computeenvironment-launchtemplatespecificationoverride-userdatatype
2096
+ '''
2097
+ result = self._values.get("userdata_type")
2098
+ return typing.cast(typing.Optional[builtins.str], result)
2099
+
2071
2100
  @builtins.property
2072
2101
  def version(self) -> typing.Optional[builtins.str]:
2073
2102
  '''The version number of the launch template, ``$Default`` , or ``$Latest`` .
@@ -2104,6 +2133,7 @@ class CfnComputeEnvironment(
2104
2133
  "launch_template_id": "launchTemplateId",
2105
2134
  "launch_template_name": "launchTemplateName",
2106
2135
  "overrides": "overrides",
2136
+ "userdata_type": "userdataType",
2107
2137
  "version": "version",
2108
2138
  },
2109
2139
  )
@@ -2114,6 +2144,7 @@ class CfnComputeEnvironment(
2114
2144
  launch_template_id: typing.Optional[builtins.str] = None,
2115
2145
  launch_template_name: typing.Optional[builtins.str] = None,
2116
2146
  overrides: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnComputeEnvironment.LaunchTemplateSpecificationOverrideProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
2147
+ userdata_type: typing.Optional[builtins.str] = None,
2117
2148
  version: typing.Optional[builtins.str] = None,
2118
2149
  ) -> None:
2119
2150
  '''An object that represents a launch template that's associated with a compute resource.
@@ -2128,6 +2159,7 @@ class CfnComputeEnvironment(
2128
2159
  :param launch_template_id: The ID of the launch template.
2129
2160
  :param launch_template_name: The name of the launch template.
2130
2161
  :param overrides: A launch template to use in place of the default launch template. You must specify either the launch template ID or launch template name in the request, but not both. You can specify up to ten (10) launch template overrides that are associated to unique instance types or families for each compute environment. .. epigraph:: To unset all override templates for a compute environment, you can pass an empty array to the `UpdateComputeEnvironment.overrides <https://docs.aws.amazon.com/batch/latest/APIReference/API_UpdateComputeEnvironment.html>`_ parameter, or not include the ``overrides`` parameter when submitting the ``UpdateComputeEnvironment`` API operation.
2162
+ :param userdata_type: The EKS node initialization process to use. You only need to specify this value if you are using a custom AMI. The default value is ``EKS_BOOTSTRAP_SH`` . If *imageType* is a custom AMI based on EKS_AL2023 or EKS_AL2023_NVIDIA then you must choose ``EKS_NODEADM`` .
2131
2163
  :param version: The version number of the launch template, ``$Default`` , or ``$Latest`` . If the value is ``$Default`` , the default version of the launch template is used. If the value is ``$Latest`` , the latest version of the launch template is used. .. epigraph:: If the AMI ID that's used in a compute environment is from the launch template, the AMI isn't changed when the compute environment is updated. It's only changed if the ``updateToLatestImageVersion`` parameter for the compute environment is set to ``true`` . During an infrastructure update, if either ``$Default`` or ``$Latest`` is specified, AWS Batch re-evaluates the launch template version, and it might use a different version of the launch template. This is the case even if the launch template isn't specified in the update. When updating a compute environment, changing the launch template requires an infrastructure update of the compute environment. For more information, see `Updating compute environments <https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html>`_ in the *AWS Batch User Guide* . Default: ``$Default`` Latest: ``$Latest``
2132
2164
 
2133
2165
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-launchtemplatespecification.html
@@ -2146,8 +2178,10 @@ class CfnComputeEnvironment(
2146
2178
  launch_template_id="launchTemplateId",
2147
2179
  launch_template_name="launchTemplateName",
2148
2180
  target_instance_types=["targetInstanceTypes"],
2181
+ userdata_type="userdataType",
2149
2182
  version="version"
2150
2183
  )],
2184
+ userdata_type="userdataType",
2151
2185
  version="version"
2152
2186
  )
2153
2187
  '''
@@ -2156,6 +2190,7 @@ class CfnComputeEnvironment(
2156
2190
  check_type(argname="argument launch_template_id", value=launch_template_id, expected_type=type_hints["launch_template_id"])
2157
2191
  check_type(argname="argument launch_template_name", value=launch_template_name, expected_type=type_hints["launch_template_name"])
2158
2192
  check_type(argname="argument overrides", value=overrides, expected_type=type_hints["overrides"])
2193
+ check_type(argname="argument userdata_type", value=userdata_type, expected_type=type_hints["userdata_type"])
2159
2194
  check_type(argname="argument version", value=version, expected_type=type_hints["version"])
2160
2195
  self._values: typing.Dict[builtins.str, typing.Any] = {}
2161
2196
  if launch_template_id is not None:
@@ -2164,6 +2199,8 @@ class CfnComputeEnvironment(
2164
2199
  self._values["launch_template_name"] = launch_template_name
2165
2200
  if overrides is not None:
2166
2201
  self._values["overrides"] = overrides
2202
+ if userdata_type is not None:
2203
+ self._values["userdata_type"] = userdata_type
2167
2204
  if version is not None:
2168
2205
  self._values["version"] = version
2169
2206
 
@@ -2203,6 +2240,17 @@ class CfnComputeEnvironment(
2203
2240
  result = self._values.get("overrides")
2204
2241
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnComputeEnvironment.LaunchTemplateSpecificationOverrideProperty"]]]], result)
2205
2242
 
2243
+ @builtins.property
2244
+ def userdata_type(self) -> typing.Optional[builtins.str]:
2245
+ '''The EKS node initialization process to use.
2246
+
2247
+ You only need to specify this value if you are using a custom AMI. The default value is ``EKS_BOOTSTRAP_SH`` . If *imageType* is a custom AMI based on EKS_AL2023 or EKS_AL2023_NVIDIA then you must choose ``EKS_NODEADM`` .
2248
+
2249
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-launchtemplatespecification.html#cfn-batch-computeenvironment-launchtemplatespecification-userdatatype
2250
+ '''
2251
+ result = self._values.get("userdata_type")
2252
+ return typing.cast(typing.Optional[builtins.str], result)
2253
+
2206
2254
  @builtins.property
2207
2255
  def version(self) -> typing.Optional[builtins.str]:
2208
2256
  '''The version number of the launch template, ``$Default`` , or ``$Latest`` .
@@ -2406,8 +2454,10 @@ class CfnComputeEnvironmentProps:
2406
2454
  launch_template_id="launchTemplateId",
2407
2455
  launch_template_name="launchTemplateName",
2408
2456
  target_instance_types=["targetInstanceTypes"],
2457
+ userdata_type="userdataType",
2409
2458
  version="version"
2410
2459
  )],
2460
+ userdata_type="userdataType",
2411
2461
  version="version"
2412
2462
  ),
2413
2463
  minv_cpus=123,
@@ -25052,6 +25102,7 @@ def _typecheckingstub__4b5bc20e5d24e0d359d6430d6ef9cdce99590872d896d3e0d65372a69
25052
25102
  launch_template_id: typing.Optional[builtins.str] = None,
25053
25103
  launch_template_name: typing.Optional[builtins.str] = None,
25054
25104
  target_instance_types: typing.Optional[typing.Sequence[builtins.str]] = None,
25105
+ userdata_type: typing.Optional[builtins.str] = None,
25055
25106
  version: typing.Optional[builtins.str] = None,
25056
25107
  ) -> None:
25057
25108
  """Type checking stubs"""
@@ -25062,6 +25113,7 @@ def _typecheckingstub__e2a48b24f0297afff0df36a352af2f9856ad8fac713d1ecbc2161d0b9
25062
25113
  launch_template_id: typing.Optional[builtins.str] = None,
25063
25114
  launch_template_name: typing.Optional[builtins.str] = None,
25064
25115
  overrides: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnComputeEnvironment.LaunchTemplateSpecificationOverrideProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
25116
+ userdata_type: typing.Optional[builtins.str] = None,
25065
25117
  version: typing.Optional[builtins.str] = None,
25066
25118
  ) -> None:
25067
25119
  """Type checking stubs"""
@@ -23172,18 +23172,17 @@ class CfnGuardrail(
23172
23172
  metaclass=jsii.JSIIMeta,
23173
23173
  jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail",
23174
23174
  ):
23175
- '''Creates a guardrail to block topics and to implement safeguards for your generative AI applications.
23175
+ '''Creates a guardrail to detect and filter harmful content in your generative AI application.
23176
23176
 
23177
- You can configure the following policies in a guardrail to avoid undesirable and harmful content, filter out denied topics and words, and remove sensitive information for privacy protection.
23177
+ Amazon Bedrock Guardrails provides the following safeguards (also known as policies) to detect and filter harmful content:
23178
23178
 
23179
- - *Content filters* - Adjust filter strengths to block input prompts or model responses containing harmful content.
23180
- - *Denied topics* - Define a set of topics that are undesirable in the context of your application. These topics will be blocked if detected in user queries or model responses.
23181
- - *Word filters* - Configure filters to block undesirable words, phrases, and profanity. Such words can include offensive terms, competitor names etc.
23182
- - *Sensitive information filters* - Block or mask sensitive information such as personally identifiable information (PII) or custom regex in user inputs and model responses.
23179
+ - *Content filters* - Detect and filter harmful text or image content in input prompts or model responses. Filtering is done based on detection of certain predefined harmful content categories: Hate, Insults, Sexual, Violence, Misconduct and Prompt Attack. You also can adjust the filter strength for each of these categories.
23180
+ - *Denied topics* - Define a set of topics that are undesirable in the context of your application. The filter will help block them if detected in user queries or model responses.
23181
+ - *Word filters* - Configure filters to help block undesirable words, phrases, and profanity (exact match). Such words can include offensive terms, competitor names, etc.
23182
+ - *Sensitive information filters* - Configure filters to help block or mask sensitive information, such as personally identifiable information (PII), or custom regex in user inputs and model responses. Blocking or masking is done based on probabilistic detection of sensitive information in standard formats in entities such as SSN number, Date of Birth, address, etc. This also allows configuring regular expression based detection of patterns for identifiers.
23183
+ - *Contextual grounding check* - Help detect and filter hallucinations in model responses based on grounding in a source and relevance to the user query.
23183
23184
 
23184
- In addition to the above policies, you can also configure the messages to be returned to the user if a user input or model response is in violation of the policies defined in the guardrail.
23185
-
23186
- For more information, see `Amazon Bedrock Guardrails <https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html>`_ in the *Amazon Bedrock User Guide* .
23185
+ For more information, see `How Amazon Bedrock Guardrails works <https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-how.html>`_ .
23187
23186
 
23188
23187
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html
23189
23188
  :cloudformationResource: AWS::Bedrock::Guardrail
@@ -23226,6 +23225,9 @@ class CfnGuardrail(
23226
23225
  enabled=False
23227
23226
  )]
23228
23227
  ),
23228
+ cross_region_config=bedrock.CfnGuardrail.GuardrailCrossRegionConfigProperty(
23229
+ guardrail_profile_arn="guardrailProfileArn"
23230
+ ),
23229
23231
  description="description",
23230
23232
  kms_key_arn="kmsKeyArn",
23231
23233
  sensitive_information_policy_config=bedrock.CfnGuardrail.SensitiveInformationPolicyConfigProperty(
@@ -23303,6 +23305,7 @@ class CfnGuardrail(
23303
23305
  name: builtins.str,
23304
23306
  content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.ContentPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
23305
23307
  contextual_grounding_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.ContextualGroundingPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
23308
+ cross_region_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.GuardrailCrossRegionConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
23306
23309
  description: typing.Optional[builtins.str] = None,
23307
23310
  kms_key_arn: typing.Optional[builtins.str] = None,
23308
23311
  sensitive_information_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.SensitiveInformationPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -23318,6 +23321,7 @@ class CfnGuardrail(
23318
23321
  :param name: The name of the guardrail.
23319
23322
  :param content_policy_config: The content filter policies to configure for the guardrail.
23320
23323
  :param contextual_grounding_policy_config: Contextual grounding policy config for a guardrail.
23324
+ :param cross_region_config: The system-defined guardrail profile that you’re using with your guardrail.
23321
23325
  :param description: A description of the guardrail.
23322
23326
  :param kms_key_arn: The ARN of the AWS KMS key that you use to encrypt the guardrail.
23323
23327
  :param sensitive_information_policy_config: The sensitive information policy to configure for the guardrail.
@@ -23335,6 +23339,7 @@ class CfnGuardrail(
23335
23339
  name=name,
23336
23340
  content_policy_config=content_policy_config,
23337
23341
  contextual_grounding_policy_config=contextual_grounding_policy_config,
23342
+ cross_region_config=cross_region_config,
23338
23343
  description=description,
23339
23344
  kms_key_arn=kms_key_arn,
23340
23345
  sensitive_information_policy_config=sensitive_information_policy_config,
@@ -23539,6 +23544,24 @@ class CfnGuardrail(
23539
23544
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
23540
23545
  jsii.set(self, "contextualGroundingPolicyConfig", value) # pyright: ignore[reportArgumentType]
23541
23546
 
23547
+ @builtins.property
23548
+ @jsii.member(jsii_name="crossRegionConfig")
23549
+ def cross_region_config(
23550
+ self,
23551
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.GuardrailCrossRegionConfigProperty"]]:
23552
+ '''The system-defined guardrail profile that you’re using with your guardrail.'''
23553
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.GuardrailCrossRegionConfigProperty"]], jsii.get(self, "crossRegionConfig"))
23554
+
23555
+ @cross_region_config.setter
23556
+ def cross_region_config(
23557
+ self,
23558
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.GuardrailCrossRegionConfigProperty"]],
23559
+ ) -> None:
23560
+ if __debug__:
23561
+ type_hints = typing.get_type_hints(_typecheckingstub__738f62e02da692a490500cccb2eda020a67df3595057e975d05d96eddbe0a385)
23562
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
23563
+ jsii.set(self, "crossRegionConfig", value) # pyright: ignore[reportArgumentType]
23564
+
23542
23565
  @builtins.property
23543
23566
  @jsii.member(jsii_name="description")
23544
23567
  def description(self) -> typing.Optional[builtins.str]:
@@ -24078,6 +24101,62 @@ class CfnGuardrail(
24078
24101
  k + "=" + repr(v) for k, v in self._values.items()
24079
24102
  )
24080
24103
 
24104
+ @jsii.data_type(
24105
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.GuardrailCrossRegionConfigProperty",
24106
+ jsii_struct_bases=[],
24107
+ name_mapping={"guardrail_profile_arn": "guardrailProfileArn"},
24108
+ )
24109
+ class GuardrailCrossRegionConfigProperty:
24110
+ def __init__(self, *, guardrail_profile_arn: builtins.str) -> None:
24111
+ '''The system-defined guardrail profile that you're using with your guardrail.
24112
+
24113
+ Guardrail profiles define the destination AWS Regions where guardrail inference requests can be automatically routed. Using guardrail profiles helps maintain guardrail performance and reliability when demand increases.
24114
+
24115
+ For more information, see the `Amazon Bedrock User Guide <https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html>`_ .
24116
+
24117
+ :param guardrail_profile_arn: The Amazon Resource Name (ARN) of the guardrail profile.
24118
+
24119
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-guardrailcrossregionconfig.html
24120
+ :exampleMetadata: fixture=_generated
24121
+
24122
+ Example::
24123
+
24124
+ # The code below shows an example of how to instantiate this type.
24125
+ # The values are placeholders you should change.
24126
+ from aws_cdk import aws_bedrock as bedrock
24127
+
24128
+ guardrail_cross_region_config_property = bedrock.CfnGuardrail.GuardrailCrossRegionConfigProperty(
24129
+ guardrail_profile_arn="guardrailProfileArn"
24130
+ )
24131
+ '''
24132
+ if __debug__:
24133
+ type_hints = typing.get_type_hints(_typecheckingstub__84d9f9f431f00c6a380b4a84fcf4f5afa289233b23a3ff0d96c0cbe447ad3877)
24134
+ check_type(argname="argument guardrail_profile_arn", value=guardrail_profile_arn, expected_type=type_hints["guardrail_profile_arn"])
24135
+ self._values: typing.Dict[builtins.str, typing.Any] = {
24136
+ "guardrail_profile_arn": guardrail_profile_arn,
24137
+ }
24138
+
24139
+ @builtins.property
24140
+ def guardrail_profile_arn(self) -> builtins.str:
24141
+ '''The Amazon Resource Name (ARN) of the guardrail profile.
24142
+
24143
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-guardrailcrossregionconfig.html#cfn-bedrock-guardrail-guardrailcrossregionconfig-guardrailprofilearn
24144
+ '''
24145
+ result = self._values.get("guardrail_profile_arn")
24146
+ assert result is not None, "Required property 'guardrail_profile_arn' is missing"
24147
+ return typing.cast(builtins.str, result)
24148
+
24149
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
24150
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
24151
+
24152
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
24153
+ return not (rhs == self)
24154
+
24155
+ def __repr__(self) -> str:
24156
+ return "GuardrailCrossRegionConfigProperty(%s)" % ", ".join(
24157
+ k + "=" + repr(v) for k, v in self._values.items()
24158
+ )
24159
+
24081
24160
  @jsii.data_type(
24082
24161
  jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.ManagedWordsConfigProperty",
24083
24162
  jsii_struct_bases=[],
@@ -25224,6 +25303,7 @@ class CfnGuardrail(
25224
25303
  "name": "name",
25225
25304
  "content_policy_config": "contentPolicyConfig",
25226
25305
  "contextual_grounding_policy_config": "contextualGroundingPolicyConfig",
25306
+ "cross_region_config": "crossRegionConfig",
25227
25307
  "description": "description",
25228
25308
  "kms_key_arn": "kmsKeyArn",
25229
25309
  "sensitive_information_policy_config": "sensitiveInformationPolicyConfig",
@@ -25241,6 +25321,7 @@ class CfnGuardrailProps:
25241
25321
  name: builtins.str,
25242
25322
  content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContentPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
25243
25323
  contextual_grounding_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContextualGroundingPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
25324
+ cross_region_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.GuardrailCrossRegionConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
25244
25325
  description: typing.Optional[builtins.str] = None,
25245
25326
  kms_key_arn: typing.Optional[builtins.str] = None,
25246
25327
  sensitive_information_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.SensitiveInformationPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -25255,6 +25336,7 @@ class CfnGuardrailProps:
25255
25336
  :param name: The name of the guardrail.
25256
25337
  :param content_policy_config: The content filter policies to configure for the guardrail.
25257
25338
  :param contextual_grounding_policy_config: Contextual grounding policy config for a guardrail.
25339
+ :param cross_region_config: The system-defined guardrail profile that you’re using with your guardrail.
25258
25340
  :param description: A description of the guardrail.
25259
25341
  :param kms_key_arn: The ARN of the AWS KMS key that you use to encrypt the guardrail.
25260
25342
  :param sensitive_information_policy_config: The sensitive information policy to configure for the guardrail.
@@ -25302,6 +25384,9 @@ class CfnGuardrailProps:
25302
25384
  enabled=False
25303
25385
  )]
25304
25386
  ),
25387
+ cross_region_config=bedrock.CfnGuardrail.GuardrailCrossRegionConfigProperty(
25388
+ guardrail_profile_arn="guardrailProfileArn"
25389
+ ),
25305
25390
  description="description",
25306
25391
  kms_key_arn="kmsKeyArn",
25307
25392
  sensitive_information_policy_config=bedrock.CfnGuardrail.SensitiveInformationPolicyConfigProperty(
@@ -25375,6 +25460,7 @@ class CfnGuardrailProps:
25375
25460
  check_type(argname="argument name", value=name, expected_type=type_hints["name"])
25376
25461
  check_type(argname="argument content_policy_config", value=content_policy_config, expected_type=type_hints["content_policy_config"])
25377
25462
  check_type(argname="argument contextual_grounding_policy_config", value=contextual_grounding_policy_config, expected_type=type_hints["contextual_grounding_policy_config"])
25463
+ check_type(argname="argument cross_region_config", value=cross_region_config, expected_type=type_hints["cross_region_config"])
25378
25464
  check_type(argname="argument description", value=description, expected_type=type_hints["description"])
25379
25465
  check_type(argname="argument kms_key_arn", value=kms_key_arn, expected_type=type_hints["kms_key_arn"])
25380
25466
  check_type(argname="argument sensitive_information_policy_config", value=sensitive_information_policy_config, expected_type=type_hints["sensitive_information_policy_config"])
@@ -25390,6 +25476,8 @@ class CfnGuardrailProps:
25390
25476
  self._values["content_policy_config"] = content_policy_config
25391
25477
  if contextual_grounding_policy_config is not None:
25392
25478
  self._values["contextual_grounding_policy_config"] = contextual_grounding_policy_config
25479
+ if cross_region_config is not None:
25480
+ self._values["cross_region_config"] = cross_region_config
25393
25481
  if description is not None:
25394
25482
  self._values["description"] = description
25395
25483
  if kms_key_arn is not None:
@@ -25455,6 +25543,17 @@ class CfnGuardrailProps:
25455
25543
  result = self._values.get("contextual_grounding_policy_config")
25456
25544
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.ContextualGroundingPolicyConfigProperty]], result)
25457
25545
 
25546
+ @builtins.property
25547
+ def cross_region_config(
25548
+ self,
25549
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.GuardrailCrossRegionConfigProperty]]:
25550
+ '''The system-defined guardrail profile that you’re using with your guardrail.
25551
+
25552
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-crossregionconfig
25553
+ '''
25554
+ result = self._values.get("cross_region_config")
25555
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.GuardrailCrossRegionConfigProperty]], result)
25556
+
25458
25557
  @builtins.property
25459
25558
  def description(self) -> typing.Optional[builtins.str]:
25460
25559
  '''A description of the guardrail.
@@ -38835,6 +38934,7 @@ def _typecheckingstub__2043b4e3280827dde584095cdad9778bf2076242696d52ba5a39dc96c
38835
38934
  name: builtins.str,
38836
38935
  content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContentPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
38837
38936
  contextual_grounding_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContextualGroundingPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
38937
+ cross_region_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.GuardrailCrossRegionConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
38838
38938
  description: typing.Optional[builtins.str] = None,
38839
38939
  kms_key_arn: typing.Optional[builtins.str] = None,
38840
38940
  sensitive_information_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.SensitiveInformationPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -38887,6 +38987,12 @@ def _typecheckingstub__29a839fbc0601b618610155b48ee9218004ce69e661c5a6ece3134c2d
38887
38987
  """Type checking stubs"""
38888
38988
  pass
38889
38989
 
38990
+ def _typecheckingstub__738f62e02da692a490500cccb2eda020a67df3595057e975d05d96eddbe0a385(
38991
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.GuardrailCrossRegionConfigProperty]],
38992
+ ) -> None:
38993
+ """Type checking stubs"""
38994
+ pass
38995
+
38890
38996
  def _typecheckingstub__885f2a8f4b710e0b2b1255d6f0514f5b0e080398bf5941c4b2830331855b81ae(
38891
38997
  value: typing.Optional[builtins.str],
38892
38998
  ) -> None:
@@ -38962,6 +39068,13 @@ def _typecheckingstub__435d1e3a7256d29079fd26306b6743fafa097d90223f38213c35ad0ef
38962
39068
  """Type checking stubs"""
38963
39069
  pass
38964
39070
 
39071
+ def _typecheckingstub__84d9f9f431f00c6a380b4a84fcf4f5afa289233b23a3ff0d96c0cbe447ad3877(
39072
+ *,
39073
+ guardrail_profile_arn: builtins.str,
39074
+ ) -> None:
39075
+ """Type checking stubs"""
39076
+ pass
39077
+
38965
39078
  def _typecheckingstub__a4bf7d4d57eaea6d7c62d6852c2666ebfc7a95d0b72269c42fb757f13cdcece6(
38966
39079
  *,
38967
39080
  type: builtins.str,
@@ -39054,6 +39167,7 @@ def _typecheckingstub__e16800cc7473874d0d58b13a772dade51a596e19ff440f95ad243d236
39054
39167
  name: builtins.str,
39055
39168
  content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContentPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
39056
39169
  contextual_grounding_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContextualGroundingPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
39170
+ cross_region_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.GuardrailCrossRegionConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
39057
39171
  description: typing.Optional[builtins.str] = None,
39058
39172
  kms_key_arn: typing.Optional[builtins.str] = None,
39059
39173
  sensitive_information_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.SensitiveInformationPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,