aws-cdk-lib 2.210.0__py3-none-any.whl → 2.212.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 (78) hide show
  1. aws_cdk/__init__.py +404 -54
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.210.0.jsii.tgz → aws-cdk-lib@2.212.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amazonmq/__init__.py +2 -1
  5. aws_cdk/aws_apigateway/__init__.py +2 -0
  6. aws_cdk/aws_apigatewayv2/__init__.py +1798 -74
  7. aws_cdk/aws_appconfig/__init__.py +9 -0
  8. aws_cdk/aws_appintegrations/__init__.py +395 -0
  9. aws_cdk/aws_arcregionswitch/__init__.py +5080 -0
  10. aws_cdk/aws_athena/__init__.py +23 -19
  11. aws_cdk/aws_autoscaling/__init__.py +6 -6
  12. aws_cdk/aws_batch/__init__.py +725 -55
  13. aws_cdk/aws_bedrock/__init__.py +18 -0
  14. aws_cdk/aws_billingconductor/__init__.py +3 -3
  15. aws_cdk/aws_cassandra/__init__.py +28 -1
  16. aws_cdk/aws_cloudfront/__init__.py +39 -8
  17. aws_cdk/aws_codebuild/__init__.py +122 -0
  18. aws_cdk/aws_codepipeline/__init__.py +51 -50
  19. aws_cdk/aws_cognito/__init__.py +9 -2
  20. aws_cdk/aws_connect/__init__.py +40 -15
  21. aws_cdk/aws_datazone/__init__.py +118 -77
  22. aws_cdk/aws_dax/__init__.py +39 -0
  23. aws_cdk/aws_deadline/__init__.py +166 -7
  24. aws_cdk/aws_docdb/__init__.py +20 -11
  25. aws_cdk/aws_dynamodb/__init__.py +246 -36
  26. aws_cdk/aws_ec2/__init__.py +1044 -111
  27. aws_cdk/aws_ecr/__init__.py +274 -0
  28. aws_cdk/aws_ecs/__init__.py +1637 -137
  29. aws_cdk/aws_eks/__init__.py +53 -3
  30. aws_cdk/aws_elasticloadbalancingv2/__init__.py +31 -17
  31. aws_cdk/aws_entityresolution/__init__.py +240 -45
  32. aws_cdk/aws_evs/__init__.py +20 -45
  33. aws_cdk/aws_gameliftstreams/__init__.py +7 -6
  34. aws_cdk/aws_glue/__init__.py +18 -9
  35. aws_cdk/aws_guardduty/__init__.py +1233 -113
  36. aws_cdk/aws_imagebuilder/__init__.py +34 -20
  37. aws_cdk/aws_inspectorv2/__init__.py +1516 -0
  38. aws_cdk/aws_iot/__init__.py +387 -0
  39. aws_cdk/aws_iotsitewise/__init__.py +1247 -139
  40. aws_cdk/aws_ivs/__init__.py +443 -33
  41. aws_cdk/aws_kinesisfirehose/__init__.py +2 -0
  42. aws_cdk/aws_lakeformation/__init__.py +1 -1
  43. aws_cdk/aws_lambda/__init__.py +9 -9
  44. aws_cdk/aws_lightsail/__init__.py +590 -0
  45. aws_cdk/aws_logs/__init__.py +97 -3
  46. aws_cdk/aws_medialive/__init__.py +270 -7
  47. aws_cdk/aws_mediapackagev2/__init__.py +204 -6
  48. aws_cdk/aws_neptune/__init__.py +41 -2
  49. aws_cdk/aws_networkfirewall/__init__.py +490 -134
  50. aws_cdk/aws_observabilityadmin/__init__.py +1468 -0
  51. aws_cdk/aws_omics/__init__.py +1 -1
  52. aws_cdk/aws_opensearchserverless/__init__.py +2 -2
  53. aws_cdk/aws_opensearchservice/__init__.py +128 -0
  54. aws_cdk/aws_opsworks/__init__.py +125 -125
  55. aws_cdk/aws_opsworkscm/__init__.py +1 -53
  56. aws_cdk/aws_pcs/__init__.py +49 -5
  57. aws_cdk/aws_qbusiness/__init__.py +3 -3
  58. aws_cdk/aws_quicksight/__init__.py +188 -83
  59. aws_cdk/aws_rds/__init__.py +245 -103
  60. aws_cdk/aws_s3/__init__.py +56 -1
  61. aws_cdk/aws_s3express/__init__.py +56 -1
  62. aws_cdk/aws_s3tables/__init__.py +2 -2
  63. aws_cdk/aws_sagemaker/__init__.py +4080 -223
  64. aws_cdk/aws_ses/__init__.py +172 -9
  65. aws_cdk/aws_sqs/__init__.py +4 -3
  66. aws_cdk/aws_ssm/__init__.py +8 -4
  67. aws_cdk/aws_stepfunctions_tasks/__init__.py +16 -9
  68. aws_cdk/aws_synthetics/__init__.py +116 -0
  69. aws_cdk/aws_verifiedpermissions/__init__.py +23 -2
  70. aws_cdk/aws_wisdom/__init__.py +2 -2
  71. aws_cdk/aws_workspacesweb/__init__.py +949 -157
  72. aws_cdk/cx_api/__init__.py +22 -0
  73. {aws_cdk_lib-2.210.0.dist-info → aws_cdk_lib-2.212.0.dist-info}/METADATA +335 -15
  74. {aws_cdk_lib-2.210.0.dist-info → aws_cdk_lib-2.212.0.dist-info}/RECORD +78 -76
  75. {aws_cdk_lib-2.210.0.dist-info → aws_cdk_lib-2.212.0.dist-info}/LICENSE +0 -0
  76. {aws_cdk_lib-2.210.0.dist-info → aws_cdk_lib-2.212.0.dist-info}/NOTICE +0 -0
  77. {aws_cdk_lib-2.210.0.dist-info → aws_cdk_lib-2.212.0.dist-info}/WHEEL +0 -0
  78. {aws_cdk_lib-2.210.0.dist-info → aws_cdk_lib-2.212.0.dist-info}/top_level.txt +0 -0
@@ -9012,8 +9012,8 @@ class CfnJobDefinition(
9012
9012
  ) -> None:
9013
9013
  '''An object that represents the compute environment architecture for AWS Batch jobs on Fargate.
9014
9014
 
9015
- :param cpu_architecture: The vCPU architecture. The default value is ``X86_64`` . Valid values are ``X86_64`` and ``ARM64`` . .. epigraph:: This parameter must be set to ``X86_64`` for Windows containers. > Fargate Spot is not supported for ``ARM64`` and Windows-based containers on Fargate. A job queue will be blocked if a Fargate ``ARM64`` or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both ``FARGATE`` and ``FARGATE_SPOT`` compute environments to the same job queue.
9016
- :param operating_system_family: The operating system for the compute environment. Valid values are: ``LINUX`` (default), ``WINDOWS_SERVER_2019_CORE`` , ``WINDOWS_SERVER_2019_FULL`` , ``WINDOWS_SERVER_2022_CORE`` , and ``WINDOWS_SERVER_2022_FULL`` . .. epigraph:: The following parameters can’t be set for Windows containers: ``linuxParameters`` , ``privileged`` , ``user`` , ``ulimits`` , ``readonlyRootFilesystem`` , and ``efsVolumeConfiguration`` . > The AWS Batch Scheduler checks the compute environments that are attached to the job queue before registering a task definition with Fargate. In this scenario, the job queue is where the job is submitted. If the job requires a Windows container and the first compute environment is ``LINUX`` , the compute environment is skipped and the next compute environment is checked until a Windows-based compute environment is found. > Fargate Spot is not supported for ``ARM64`` and Windows-based containers on Fargate. A job queue will be blocked if a Fargate ``ARM64`` or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both ``FARGATE`` and ``FARGATE_SPOT`` compute environments to the same job queue.
9015
+ :param cpu_architecture: The vCPU architecture. The default value is ``X86_64`` . Valid values are ``X86_64`` and ``ARM64`` . .. epigraph:: This parameter must be set to ``X86_64`` for Windows containers. > Fargate Spot is not supported on Windows-based containers on Fargate. A job queue will be blocked if a Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both ``FARGATE`` and ``FARGATE_SPOT`` compute environments to the same job queue.
9016
+ :param operating_system_family: The operating system for the compute environment. Valid values are: ``LINUX`` (default), ``WINDOWS_SERVER_2019_CORE`` , ``WINDOWS_SERVER_2019_FULL`` , ``WINDOWS_SERVER_2022_CORE`` , and ``WINDOWS_SERVER_2022_FULL`` . .. epigraph:: The following parameters can’t be set for Windows containers: ``linuxParameters`` , ``privileged`` , ``user`` , ``ulimits`` , ``readonlyRootFilesystem`` , and ``efsVolumeConfiguration`` . > The AWS Batch Scheduler checks the compute environments that are attached to the job queue before registering a task definition with Fargate. In this scenario, the job queue is where the job is submitted. If the job requires a Windows container and the first compute environment is ``LINUX`` , the compute environment is skipped and the next compute environment is checked until a Windows-based compute environment is found. > Fargate Spot is not supported on Windows-based containers on Fargate. A job queue will be blocked if a Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both ``FARGATE`` and ``FARGATE_SPOT`` compute environments to the same job queue.
9017
9017
 
9018
9018
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-runtimeplatform.html
9019
9019
  :exampleMetadata: fixture=_generated
@@ -9045,7 +9045,7 @@ class CfnJobDefinition(
9045
9045
 
9046
9046
  .. epigraph::
9047
9047
 
9048
- This parameter must be set to ``X86_64`` for Windows containers. > Fargate Spot is not supported for ``ARM64`` and Windows-based containers on Fargate. A job queue will be blocked if a Fargate ``ARM64`` or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both ``FARGATE`` and ``FARGATE_SPOT`` compute environments to the same job queue.
9048
+ This parameter must be set to ``X86_64`` for Windows containers. > Fargate Spot is not supported on Windows-based containers on Fargate. A job queue will be blocked if a Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both ``FARGATE`` and ``FARGATE_SPOT`` compute environments to the same job queue.
9049
9049
 
9050
9050
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-runtimeplatform.html#cfn-batch-jobdefinition-runtimeplatform-cpuarchitecture
9051
9051
  '''
@@ -9059,7 +9059,7 @@ class CfnJobDefinition(
9059
9059
  Valid values are: ``LINUX`` (default), ``WINDOWS_SERVER_2019_CORE`` , ``WINDOWS_SERVER_2019_FULL`` , ``WINDOWS_SERVER_2022_CORE`` , and ``WINDOWS_SERVER_2022_FULL`` .
9060
9060
  .. epigraph::
9061
9061
 
9062
- The following parameters can’t be set for Windows containers: ``linuxParameters`` , ``privileged`` , ``user`` , ``ulimits`` , ``readonlyRootFilesystem`` , and ``efsVolumeConfiguration`` . > The AWS Batch Scheduler checks the compute environments that are attached to the job queue before registering a task definition with Fargate. In this scenario, the job queue is where the job is submitted. If the job requires a Windows container and the first compute environment is ``LINUX`` , the compute environment is skipped and the next compute environment is checked until a Windows-based compute environment is found. > Fargate Spot is not supported for ``ARM64`` and Windows-based containers on Fargate. A job queue will be blocked if a Fargate ``ARM64`` or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both ``FARGATE`` and ``FARGATE_SPOT`` compute environments to the same job queue.
9062
+ The following parameters can’t be set for Windows containers: ``linuxParameters`` , ``privileged`` , ``user`` , ``ulimits`` , ``readonlyRootFilesystem`` , and ``efsVolumeConfiguration`` . > The AWS Batch Scheduler checks the compute environments that are attached to the job queue before registering a task definition with Fargate. In this scenario, the job queue is where the job is submitted. If the job requires a Windows container and the first compute environment is ``LINUX`` , the compute environment is skipped and the next compute environment is checked until a Windows-based compute environment is found. > Fargate Spot is not supported on Windows-based containers on Fargate. A job queue will be blocked if a Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both ``FARGATE`` and ``FARGATE_SPOT`` compute environments to the same job queue.
9063
9063
 
9064
9064
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-runtimeplatform.html#cfn-batch-jobdefinition-runtimeplatform-operatingsystemfamily
9065
9065
  '''
@@ -10561,14 +10561,15 @@ class CfnJobQueue(
10561
10561
  from aws_cdk import aws_batch as batch
10562
10562
 
10563
10563
  cfn_job_queue = batch.CfnJobQueue(self, "MyCfnJobQueue",
10564
+ priority=123,
10565
+
10566
+ # the properties below are optional
10564
10567
  compute_environment_order=[batch.CfnJobQueue.ComputeEnvironmentOrderProperty(
10565
10568
  compute_environment="computeEnvironment",
10566
10569
  order=123
10567
10570
  )],
10568
- priority=123,
10569
-
10570
- # the properties below are optional
10571
10571
  job_queue_name="jobQueueName",
10572
+ job_queue_type="jobQueueType",
10572
10573
  job_state_time_limit_actions=[batch.CfnJobQueue.JobStateTimeLimitActionProperty(
10573
10574
  action="action",
10574
10575
  max_time_seconds=123,
@@ -10576,6 +10577,10 @@ class CfnJobQueue(
10576
10577
  state="state"
10577
10578
  )],
10578
10579
  scheduling_policy_arn="schedulingPolicyArn",
10580
+ service_environment_order=[batch.CfnJobQueue.ServiceEnvironmentOrderProperty(
10581
+ order=123,
10582
+ service_environment="serviceEnvironment"
10583
+ )],
10579
10584
  state="state",
10580
10585
  tags={
10581
10586
  "tags_key": "tags"
@@ -10588,22 +10593,26 @@ class CfnJobQueue(
10588
10593
  scope: _constructs_77d1e7e8.Construct,
10589
10594
  id: builtins.str,
10590
10595
  *,
10591
- compute_environment_order: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobQueue.ComputeEnvironmentOrderProperty", typing.Dict[builtins.str, typing.Any]]]]],
10592
10596
  priority: jsii.Number,
10597
+ compute_environment_order: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobQueue.ComputeEnvironmentOrderProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
10593
10598
  job_queue_name: typing.Optional[builtins.str] = None,
10599
+ job_queue_type: typing.Optional[builtins.str] = None,
10594
10600
  job_state_time_limit_actions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobQueue.JobStateTimeLimitActionProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
10595
10601
  scheduling_policy_arn: typing.Optional[builtins.str] = None,
10602
+ service_environment_order: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobQueue.ServiceEnvironmentOrderProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
10596
10603
  state: typing.Optional[builtins.str] = None,
10597
10604
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
10598
10605
  ) -> None:
10599
10606
  '''
10600
10607
  :param scope: Scope in which this resource is defined.
10601
10608
  :param id: Construct identifier for this resource (unique in its scope).
10602
- :param compute_environment_order: The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler uses this parameter to determine which compute environment runs a specific job. Compute environments must be in the ``VALID`` state before you can associate them with a job queue. You can associate up to three compute environments with a job queue. All of the compute environments must be either EC2 ( ``EC2`` or ``SPOT`` ) or Fargate ( ``FARGATE`` or ``FARGATE_SPOT`` ); EC2 and Fargate compute environments can't be mixed. .. epigraph:: All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
10603
10609
  :param priority: The priority of the job queue. Job queues with a higher priority (or a higher integer value for the ``priority`` parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of ``10`` is given scheduling preference over a job queue with a priority value of ``1`` . All of the compute environments must be either EC2 ( ``EC2`` or ``SPOT`` ) or Fargate ( ``FARGATE`` or ``FARGATE_SPOT`` ); EC2 and Fargate compute environments can't be mixed.
10610
+ :param compute_environment_order: The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler uses this parameter to determine which compute environment runs a specific job. Compute environments must be in the ``VALID`` state before you can associate them with a job queue. You can associate up to three compute environments with a job queue. All of the compute environments must be either EC2 ( ``EC2`` or ``SPOT`` ) or Fargate ( ``FARGATE`` or ``FARGATE_SPOT`` ); EC2 and Fargate compute environments can't be mixed. .. epigraph:: All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
10604
10611
  :param job_queue_name: The name of the job queue. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
10612
+ :param job_queue_type: The type of job queue. For service jobs that run on SageMaker AI , this value is ``SAGEMAKER_TRAINING`` . For regular container jobs, this value is ``EKS`` , ``ECS`` , or ``ECS_FARGATE`` depending on the compute environment.
10605
10613
  :param job_state_time_limit_actions: The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times. AWS Batch will perform each action after ``maxTimeSeconds`` has passed.
10606
10614
  :param scheduling_policy_arn: The Amazon Resource Name (ARN) of the scheduling policy. The format is ``aws: *Partition* :batch: *Region* : *Account* :scheduling-policy/ *Name*`` . For example, ``aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy`` .
10615
+ :param service_environment_order: The order of the service environment associated with the job queue. Job queues with a higher priority are evaluated first when associated with the same service environment.
10607
10616
  :param state: The state of the job queue. If the job queue state is ``ENABLED`` , it is able to accept jobs. If the job queue state is ``DISABLED`` , new jobs can't be added to the queue, but jobs already in the queue can finish.
10608
10617
  :param tags: The tags that are applied to the job queue. For more information, see `Tagging your AWS Batch resources <https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html>`_ in *AWS Batch User Guide* .
10609
10618
  '''
@@ -10612,11 +10621,13 @@ class CfnJobQueue(
10612
10621
  check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
10613
10622
  check_type(argname="argument id", value=id, expected_type=type_hints["id"])
10614
10623
  props = CfnJobQueueProps(
10615
- compute_environment_order=compute_environment_order,
10616
10624
  priority=priority,
10625
+ compute_environment_order=compute_environment_order,
10617
10626
  job_queue_name=job_queue_name,
10627
+ job_queue_type=job_queue_type,
10618
10628
  job_state_time_limit_actions=job_state_time_limit_actions,
10619
10629
  scheduling_policy_arn=scheduling_policy_arn,
10630
+ service_environment_order=service_environment_order,
10620
10631
  state=state,
10621
10632
  tags=tags,
10622
10633
  )
@@ -10673,37 +10684,37 @@ class CfnJobQueue(
10673
10684
  '''Tag Manager which manages the tags for this resource.'''
10674
10685
  return typing.cast(_TagManager_0a598cb3, jsii.get(self, "tags"))
10675
10686
 
10687
+ @builtins.property
10688
+ @jsii.member(jsii_name="priority")
10689
+ def priority(self) -> jsii.Number:
10690
+ '''The priority of the job queue.'''
10691
+ return typing.cast(jsii.Number, jsii.get(self, "priority"))
10692
+
10693
+ @priority.setter
10694
+ def priority(self, value: jsii.Number) -> None:
10695
+ if __debug__:
10696
+ type_hints = typing.get_type_hints(_typecheckingstub__620331f74c116d31a6d43627e1a45e7041bc3c110194265f30dc193863c8ed94)
10697
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
10698
+ jsii.set(self, "priority", value) # pyright: ignore[reportArgumentType]
10699
+
10676
10700
  @builtins.property
10677
10701
  @jsii.member(jsii_name="computeEnvironmentOrder")
10678
10702
  def compute_environment_order(
10679
10703
  self,
10680
- ) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnJobQueue.ComputeEnvironmentOrderProperty"]]]:
10704
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnJobQueue.ComputeEnvironmentOrderProperty"]]]]:
10681
10705
  '''The set of compute environments mapped to a job queue and their order relative to each other.'''
10682
- return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnJobQueue.ComputeEnvironmentOrderProperty"]]], jsii.get(self, "computeEnvironmentOrder"))
10706
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnJobQueue.ComputeEnvironmentOrderProperty"]]]], jsii.get(self, "computeEnvironmentOrder"))
10683
10707
 
10684
10708
  @compute_environment_order.setter
10685
10709
  def compute_environment_order(
10686
10710
  self,
10687
- value: typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnJobQueue.ComputeEnvironmentOrderProperty"]]],
10711
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnJobQueue.ComputeEnvironmentOrderProperty"]]]],
10688
10712
  ) -> None:
10689
10713
  if __debug__:
10690
10714
  type_hints = typing.get_type_hints(_typecheckingstub__aa1c2f3f42165309672c3fdf8c286ff9dc5e99756ec1a5b3ffca9e719d4c7036)
10691
10715
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
10692
10716
  jsii.set(self, "computeEnvironmentOrder", value) # pyright: ignore[reportArgumentType]
10693
10717
 
10694
- @builtins.property
10695
- @jsii.member(jsii_name="priority")
10696
- def priority(self) -> jsii.Number:
10697
- '''The priority of the job queue.'''
10698
- return typing.cast(jsii.Number, jsii.get(self, "priority"))
10699
-
10700
- @priority.setter
10701
- def priority(self, value: jsii.Number) -> None:
10702
- if __debug__:
10703
- type_hints = typing.get_type_hints(_typecheckingstub__620331f74c116d31a6d43627e1a45e7041bc3c110194265f30dc193863c8ed94)
10704
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
10705
- jsii.set(self, "priority", value) # pyright: ignore[reportArgumentType]
10706
-
10707
10718
  @builtins.property
10708
10719
  @jsii.member(jsii_name="jobQueueName")
10709
10720
  def job_queue_name(self) -> typing.Optional[builtins.str]:
@@ -10717,6 +10728,19 @@ class CfnJobQueue(
10717
10728
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
10718
10729
  jsii.set(self, "jobQueueName", value) # pyright: ignore[reportArgumentType]
10719
10730
 
10731
+ @builtins.property
10732
+ @jsii.member(jsii_name="jobQueueType")
10733
+ def job_queue_type(self) -> typing.Optional[builtins.str]:
10734
+ '''The type of job queue.'''
10735
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "jobQueueType"))
10736
+
10737
+ @job_queue_type.setter
10738
+ def job_queue_type(self, value: typing.Optional[builtins.str]) -> None:
10739
+ if __debug__:
10740
+ type_hints = typing.get_type_hints(_typecheckingstub__cf7ba788adc96e65e278a0278721e322a7b2c5ad42c7d2cafd707c74e58d6e65)
10741
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
10742
+ jsii.set(self, "jobQueueType", value) # pyright: ignore[reportArgumentType]
10743
+
10720
10744
  @builtins.property
10721
10745
  @jsii.member(jsii_name="jobStateTimeLimitActions")
10722
10746
  def job_state_time_limit_actions(
@@ -10748,6 +10772,24 @@ class CfnJobQueue(
10748
10772
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
10749
10773
  jsii.set(self, "schedulingPolicyArn", value) # pyright: ignore[reportArgumentType]
10750
10774
 
10775
+ @builtins.property
10776
+ @jsii.member(jsii_name="serviceEnvironmentOrder")
10777
+ def service_environment_order(
10778
+ self,
10779
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnJobQueue.ServiceEnvironmentOrderProperty"]]]]:
10780
+ '''The order of the service environment associated with the job queue.'''
10781
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnJobQueue.ServiceEnvironmentOrderProperty"]]]], jsii.get(self, "serviceEnvironmentOrder"))
10782
+
10783
+ @service_environment_order.setter
10784
+ def service_environment_order(
10785
+ self,
10786
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnJobQueue.ServiceEnvironmentOrderProperty"]]]],
10787
+ ) -> None:
10788
+ if __debug__:
10789
+ type_hints = typing.get_type_hints(_typecheckingstub__59b5173dac1cdbe1bbc03df51cc226f4cddcdbdc7dd27fbfc1081cce50fc2d50)
10790
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
10791
+ jsii.set(self, "serviceEnvironmentOrder", value) # pyright: ignore[reportArgumentType]
10792
+
10751
10793
  @builtins.property
10752
10794
  @jsii.member(jsii_name="state")
10753
10795
  def state(self) -> typing.Optional[builtins.str]:
@@ -10967,16 +11009,93 @@ class CfnJobQueue(
10967
11009
  k + "=" + repr(v) for k, v in self._values.items()
10968
11010
  )
10969
11011
 
11012
+ @jsii.data_type(
11013
+ jsii_type="aws-cdk-lib.aws_batch.CfnJobQueue.ServiceEnvironmentOrderProperty",
11014
+ jsii_struct_bases=[],
11015
+ name_mapping={"order": "order", "service_environment": "serviceEnvironment"},
11016
+ )
11017
+ class ServiceEnvironmentOrderProperty:
11018
+ def __init__(
11019
+ self,
11020
+ *,
11021
+ order: jsii.Number,
11022
+ service_environment: builtins.str,
11023
+ ) -> None:
11024
+ '''Specifies the order of a service environment for a job queue.
11025
+
11026
+ This determines the priority order when multiple service environments are associated with the same job queue.
11027
+
11028
+ :param order: The order of the service environment. Job queues with a higher priority are evaluated first when associated with the same service environment.
11029
+ :param service_environment: The name or ARN of the service environment.
11030
+
11031
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobqueue-serviceenvironmentorder.html
11032
+ :exampleMetadata: fixture=_generated
11033
+
11034
+ Example::
11035
+
11036
+ # The code below shows an example of how to instantiate this type.
11037
+ # The values are placeholders you should change.
11038
+ from aws_cdk import aws_batch as batch
11039
+
11040
+ service_environment_order_property = batch.CfnJobQueue.ServiceEnvironmentOrderProperty(
11041
+ order=123,
11042
+ service_environment="serviceEnvironment"
11043
+ )
11044
+ '''
11045
+ if __debug__:
11046
+ type_hints = typing.get_type_hints(_typecheckingstub__04c4b071542df93d5d7f1e7493b1bd821aaeae2008c337f58b1d399f309446bf)
11047
+ check_type(argname="argument order", value=order, expected_type=type_hints["order"])
11048
+ check_type(argname="argument service_environment", value=service_environment, expected_type=type_hints["service_environment"])
11049
+ self._values: typing.Dict[builtins.str, typing.Any] = {
11050
+ "order": order,
11051
+ "service_environment": service_environment,
11052
+ }
11053
+
11054
+ @builtins.property
11055
+ def order(self) -> jsii.Number:
11056
+ '''The order of the service environment.
11057
+
11058
+ Job queues with a higher priority are evaluated first when associated with the same service environment.
11059
+
11060
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobqueue-serviceenvironmentorder.html#cfn-batch-jobqueue-serviceenvironmentorder-order
11061
+ '''
11062
+ result = self._values.get("order")
11063
+ assert result is not None, "Required property 'order' is missing"
11064
+ return typing.cast(jsii.Number, result)
11065
+
11066
+ @builtins.property
11067
+ def service_environment(self) -> builtins.str:
11068
+ '''The name or ARN of the service environment.
11069
+
11070
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobqueue-serviceenvironmentorder.html#cfn-batch-jobqueue-serviceenvironmentorder-serviceenvironment
11071
+ '''
11072
+ result = self._values.get("service_environment")
11073
+ assert result is not None, "Required property 'service_environment' is missing"
11074
+ return typing.cast(builtins.str, result)
11075
+
11076
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
11077
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
11078
+
11079
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
11080
+ return not (rhs == self)
11081
+
11082
+ def __repr__(self) -> str:
11083
+ return "ServiceEnvironmentOrderProperty(%s)" % ", ".join(
11084
+ k + "=" + repr(v) for k, v in self._values.items()
11085
+ )
11086
+
10970
11087
 
10971
11088
  @jsii.data_type(
10972
11089
  jsii_type="aws-cdk-lib.aws_batch.CfnJobQueueProps",
10973
11090
  jsii_struct_bases=[],
10974
11091
  name_mapping={
10975
- "compute_environment_order": "computeEnvironmentOrder",
10976
11092
  "priority": "priority",
11093
+ "compute_environment_order": "computeEnvironmentOrder",
10977
11094
  "job_queue_name": "jobQueueName",
11095
+ "job_queue_type": "jobQueueType",
10978
11096
  "job_state_time_limit_actions": "jobStateTimeLimitActions",
10979
11097
  "scheduling_policy_arn": "schedulingPolicyArn",
11098
+ "service_environment_order": "serviceEnvironmentOrder",
10980
11099
  "state": "state",
10981
11100
  "tags": "tags",
10982
11101
  },
@@ -10985,21 +11104,25 @@ class CfnJobQueueProps:
10985
11104
  def __init__(
10986
11105
  self,
10987
11106
  *,
10988
- compute_environment_order: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobQueue.ComputeEnvironmentOrderProperty, typing.Dict[builtins.str, typing.Any]]]]],
10989
11107
  priority: jsii.Number,
11108
+ compute_environment_order: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobQueue.ComputeEnvironmentOrderProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
10990
11109
  job_queue_name: typing.Optional[builtins.str] = None,
11110
+ job_queue_type: typing.Optional[builtins.str] = None,
10991
11111
  job_state_time_limit_actions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobQueue.JobStateTimeLimitActionProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
10992
11112
  scheduling_policy_arn: typing.Optional[builtins.str] = None,
11113
+ service_environment_order: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobQueue.ServiceEnvironmentOrderProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
10993
11114
  state: typing.Optional[builtins.str] = None,
10994
11115
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
10995
11116
  ) -> None:
10996
11117
  '''Properties for defining a ``CfnJobQueue``.
10997
11118
 
10998
- :param compute_environment_order: The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler uses this parameter to determine which compute environment runs a specific job. Compute environments must be in the ``VALID`` state before you can associate them with a job queue. You can associate up to three compute environments with a job queue. All of the compute environments must be either EC2 ( ``EC2`` or ``SPOT`` ) or Fargate ( ``FARGATE`` or ``FARGATE_SPOT`` ); EC2 and Fargate compute environments can't be mixed. .. epigraph:: All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
10999
11119
  :param priority: The priority of the job queue. Job queues with a higher priority (or a higher integer value for the ``priority`` parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of ``10`` is given scheduling preference over a job queue with a priority value of ``1`` . All of the compute environments must be either EC2 ( ``EC2`` or ``SPOT`` ) or Fargate ( ``FARGATE`` or ``FARGATE_SPOT`` ); EC2 and Fargate compute environments can't be mixed.
11120
+ :param compute_environment_order: The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler uses this parameter to determine which compute environment runs a specific job. Compute environments must be in the ``VALID`` state before you can associate them with a job queue. You can associate up to three compute environments with a job queue. All of the compute environments must be either EC2 ( ``EC2`` or ``SPOT`` ) or Fargate ( ``FARGATE`` or ``FARGATE_SPOT`` ); EC2 and Fargate compute environments can't be mixed. .. epigraph:: All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
11000
11121
  :param job_queue_name: The name of the job queue. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
11122
+ :param job_queue_type: The type of job queue. For service jobs that run on SageMaker AI , this value is ``SAGEMAKER_TRAINING`` . For regular container jobs, this value is ``EKS`` , ``ECS`` , or ``ECS_FARGATE`` depending on the compute environment.
11001
11123
  :param job_state_time_limit_actions: The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times. AWS Batch will perform each action after ``maxTimeSeconds`` has passed.
11002
11124
  :param scheduling_policy_arn: The Amazon Resource Name (ARN) of the scheduling policy. The format is ``aws: *Partition* :batch: *Region* : *Account* :scheduling-policy/ *Name*`` . For example, ``aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy`` .
11125
+ :param service_environment_order: The order of the service environment associated with the job queue. Job queues with a higher priority are evaluated first when associated with the same service environment.
11003
11126
  :param state: The state of the job queue. If the job queue state is ``ENABLED`` , it is able to accept jobs. If the job queue state is ``DISABLED`` , new jobs can't be added to the queue, but jobs already in the queue can finish.
11004
11127
  :param tags: The tags that are applied to the job queue. For more information, see `Tagging your AWS Batch resources <https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html>`_ in *AWS Batch User Guide* .
11005
11128
 
@@ -11013,14 +11136,15 @@ class CfnJobQueueProps:
11013
11136
  from aws_cdk import aws_batch as batch
11014
11137
 
11015
11138
  cfn_job_queue_props = batch.CfnJobQueueProps(
11139
+ priority=123,
11140
+
11141
+ # the properties below are optional
11016
11142
  compute_environment_order=[batch.CfnJobQueue.ComputeEnvironmentOrderProperty(
11017
11143
  compute_environment="computeEnvironment",
11018
11144
  order=123
11019
11145
  )],
11020
- priority=123,
11021
-
11022
- # the properties below are optional
11023
11146
  job_queue_name="jobQueueName",
11147
+ job_queue_type="jobQueueType",
11024
11148
  job_state_time_limit_actions=[batch.CfnJobQueue.JobStateTimeLimitActionProperty(
11025
11149
  action="action",
11026
11150
  max_time_seconds=123,
@@ -11028,6 +11152,10 @@ class CfnJobQueueProps:
11028
11152
  state="state"
11029
11153
  )],
11030
11154
  scheduling_policy_arn="schedulingPolicyArn",
11155
+ service_environment_order=[batch.CfnJobQueue.ServiceEnvironmentOrderProperty(
11156
+ order=123,
11157
+ service_environment="serviceEnvironment"
11158
+ )],
11031
11159
  state="state",
11032
11160
  tags={
11033
11161
  "tags_key": "tags"
@@ -11036,32 +11164,51 @@ class CfnJobQueueProps:
11036
11164
  '''
11037
11165
  if __debug__:
11038
11166
  type_hints = typing.get_type_hints(_typecheckingstub__009d6d384b1b723169e64875095e05fe852ae3931adf5ba2004d22475a76caa9)
11039
- check_type(argname="argument compute_environment_order", value=compute_environment_order, expected_type=type_hints["compute_environment_order"])
11040
11167
  check_type(argname="argument priority", value=priority, expected_type=type_hints["priority"])
11168
+ check_type(argname="argument compute_environment_order", value=compute_environment_order, expected_type=type_hints["compute_environment_order"])
11041
11169
  check_type(argname="argument job_queue_name", value=job_queue_name, expected_type=type_hints["job_queue_name"])
11170
+ check_type(argname="argument job_queue_type", value=job_queue_type, expected_type=type_hints["job_queue_type"])
11042
11171
  check_type(argname="argument job_state_time_limit_actions", value=job_state_time_limit_actions, expected_type=type_hints["job_state_time_limit_actions"])
11043
11172
  check_type(argname="argument scheduling_policy_arn", value=scheduling_policy_arn, expected_type=type_hints["scheduling_policy_arn"])
11173
+ check_type(argname="argument service_environment_order", value=service_environment_order, expected_type=type_hints["service_environment_order"])
11044
11174
  check_type(argname="argument state", value=state, expected_type=type_hints["state"])
11045
11175
  check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
11046
11176
  self._values: typing.Dict[builtins.str, typing.Any] = {
11047
- "compute_environment_order": compute_environment_order,
11048
11177
  "priority": priority,
11049
11178
  }
11179
+ if compute_environment_order is not None:
11180
+ self._values["compute_environment_order"] = compute_environment_order
11050
11181
  if job_queue_name is not None:
11051
11182
  self._values["job_queue_name"] = job_queue_name
11183
+ if job_queue_type is not None:
11184
+ self._values["job_queue_type"] = job_queue_type
11052
11185
  if job_state_time_limit_actions is not None:
11053
11186
  self._values["job_state_time_limit_actions"] = job_state_time_limit_actions
11054
11187
  if scheduling_policy_arn is not None:
11055
11188
  self._values["scheduling_policy_arn"] = scheduling_policy_arn
11189
+ if service_environment_order is not None:
11190
+ self._values["service_environment_order"] = service_environment_order
11056
11191
  if state is not None:
11057
11192
  self._values["state"] = state
11058
11193
  if tags is not None:
11059
11194
  self._values["tags"] = tags
11060
11195
 
11196
+ @builtins.property
11197
+ def priority(self) -> jsii.Number:
11198
+ '''The priority of the job queue.
11199
+
11200
+ Job queues with a higher priority (or a higher integer value for the ``priority`` parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of ``10`` is given scheduling preference over a job queue with a priority value of ``1`` . All of the compute environments must be either EC2 ( ``EC2`` or ``SPOT`` ) or Fargate ( ``FARGATE`` or ``FARGATE_SPOT`` ); EC2 and Fargate compute environments can't be mixed.
11201
+
11202
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobqueue.html#cfn-batch-jobqueue-priority
11203
+ '''
11204
+ result = self._values.get("priority")
11205
+ assert result is not None, "Required property 'priority' is missing"
11206
+ return typing.cast(jsii.Number, result)
11207
+
11061
11208
  @builtins.property
11062
11209
  def compute_environment_order(
11063
11210
  self,
11064
- ) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnJobQueue.ComputeEnvironmentOrderProperty]]]:
11211
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnJobQueue.ComputeEnvironmentOrderProperty]]]]:
11065
11212
  '''The set of compute environments mapped to a job queue and their order relative to each other.
11066
11213
 
11067
11214
  The job scheduler uses this parameter to determine which compute environment runs a specific job. Compute environments must be in the ``VALID`` state before you can associate them with a job queue. You can associate up to three compute environments with a job queue. All of the compute environments must be either EC2 ( ``EC2`` or ``SPOT`` ) or Fargate ( ``FARGATE`` or ``FARGATE_SPOT`` ); EC2 and Fargate compute environments can't be mixed.
@@ -11072,20 +11219,7 @@ class CfnJobQueueProps:
11072
11219
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobqueue.html#cfn-batch-jobqueue-computeenvironmentorder
11073
11220
  '''
11074
11221
  result = self._values.get("compute_environment_order")
11075
- assert result is not None, "Required property 'compute_environment_order' is missing"
11076
- return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnJobQueue.ComputeEnvironmentOrderProperty]]], result)
11077
-
11078
- @builtins.property
11079
- def priority(self) -> jsii.Number:
11080
- '''The priority of the job queue.
11081
-
11082
- Job queues with a higher priority (or a higher integer value for the ``priority`` parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of ``10`` is given scheduling preference over a job queue with a priority value of ``1`` . All of the compute environments must be either EC2 ( ``EC2`` or ``SPOT`` ) or Fargate ( ``FARGATE`` or ``FARGATE_SPOT`` ); EC2 and Fargate compute environments can't be mixed.
11083
-
11084
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobqueue.html#cfn-batch-jobqueue-priority
11085
- '''
11086
- result = self._values.get("priority")
11087
- assert result is not None, "Required property 'priority' is missing"
11088
- return typing.cast(jsii.Number, result)
11222
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnJobQueue.ComputeEnvironmentOrderProperty]]]], result)
11089
11223
 
11090
11224
  @builtins.property
11091
11225
  def job_queue_name(self) -> typing.Optional[builtins.str]:
@@ -11098,6 +11232,17 @@ class CfnJobQueueProps:
11098
11232
  result = self._values.get("job_queue_name")
11099
11233
  return typing.cast(typing.Optional[builtins.str], result)
11100
11234
 
11235
+ @builtins.property
11236
+ def job_queue_type(self) -> typing.Optional[builtins.str]:
11237
+ '''The type of job queue.
11238
+
11239
+ For service jobs that run on SageMaker AI , this value is ``SAGEMAKER_TRAINING`` . For regular container jobs, this value is ``EKS`` , ``ECS`` , or ``ECS_FARGATE`` depending on the compute environment.
11240
+
11241
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobqueue.html#cfn-batch-jobqueue-jobqueuetype
11242
+ '''
11243
+ result = self._values.get("job_queue_type")
11244
+ return typing.cast(typing.Optional[builtins.str], result)
11245
+
11101
11246
  @builtins.property
11102
11247
  def job_state_time_limit_actions(
11103
11248
  self,
@@ -11122,6 +11267,19 @@ class CfnJobQueueProps:
11122
11267
  result = self._values.get("scheduling_policy_arn")
11123
11268
  return typing.cast(typing.Optional[builtins.str], result)
11124
11269
 
11270
+ @builtins.property
11271
+ def service_environment_order(
11272
+ self,
11273
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnJobQueue.ServiceEnvironmentOrderProperty]]]]:
11274
+ '''The order of the service environment associated with the job queue.
11275
+
11276
+ Job queues with a higher priority are evaluated first when associated with the same service environment.
11277
+
11278
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobqueue.html#cfn-batch-jobqueue-serviceenvironmentorder
11279
+ '''
11280
+ result = self._values.get("service_environment_order")
11281
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnJobQueue.ServiceEnvironmentOrderProperty]]]], result)
11282
+
11125
11283
  @builtins.property
11126
11284
  def state(self) -> typing.Optional[builtins.str]:
11127
11285
  '''The state of the job queue.
@@ -11614,6 +11772,418 @@ class CfnSchedulingPolicyProps:
11614
11772
  )
11615
11773
 
11616
11774
 
11775
+ @jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
11776
+ class CfnServiceEnvironment(
11777
+ _CfnResource_9df397a6,
11778
+ metaclass=jsii.JSIIMeta,
11779
+ jsii_type="aws-cdk-lib.aws_batch.CfnServiceEnvironment",
11780
+ ):
11781
+ '''Creates a service environment for running service jobs.
11782
+
11783
+ Service environments define capacity limits for specific service types such as SageMaker Training jobs.
11784
+
11785
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-serviceenvironment.html
11786
+ :cloudformationResource: AWS::Batch::ServiceEnvironment
11787
+ :exampleMetadata: fixture=_generated
11788
+
11789
+ Example::
11790
+
11791
+ # The code below shows an example of how to instantiate this type.
11792
+ # The values are placeholders you should change.
11793
+ from aws_cdk import aws_batch as batch
11794
+
11795
+ cfn_service_environment = batch.CfnServiceEnvironment(self, "MyCfnServiceEnvironment",
11796
+ capacity_limits=[batch.CfnServiceEnvironment.CapacityLimitProperty(
11797
+ capacity_unit="capacityUnit",
11798
+ max_capacity=123
11799
+ )],
11800
+ service_environment_type="serviceEnvironmentType",
11801
+
11802
+ # the properties below are optional
11803
+ service_environment_name="serviceEnvironmentName",
11804
+ state="state",
11805
+ tags={
11806
+ "tags_key": "tags"
11807
+ }
11808
+ )
11809
+ '''
11810
+
11811
+ def __init__(
11812
+ self,
11813
+ scope: _constructs_77d1e7e8.Construct,
11814
+ id: builtins.str,
11815
+ *,
11816
+ capacity_limits: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnServiceEnvironment.CapacityLimitProperty", typing.Dict[builtins.str, typing.Any]]]]],
11817
+ service_environment_type: builtins.str,
11818
+ service_environment_name: typing.Optional[builtins.str] = None,
11819
+ state: typing.Optional[builtins.str] = None,
11820
+ tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
11821
+ ) -> None:
11822
+ '''
11823
+ :param scope: Scope in which this resource is defined.
11824
+ :param id: Construct identifier for this resource (unique in its scope).
11825
+ :param capacity_limits: The capacity limits for the service environment. This defines the maximum resources that can be used by service jobs in this environment.
11826
+ :param service_environment_type: The type of service environment. For SageMaker Training jobs, this value is ``SAGEMAKER_TRAINING`` .
11827
+ :param service_environment_name: The name of the service environment.
11828
+ :param state: The state of the service environment. Valid values are ``ENABLED`` and ``DISABLED`` .
11829
+ :param tags: The tags associated with the service environment. Each tag consists of a key and an optional value. For more information, see `Tagging your AWS Batch resources <https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html>`_ .
11830
+ '''
11831
+ if __debug__:
11832
+ type_hints = typing.get_type_hints(_typecheckingstub__a6f9de8dd6d91e1ef3541444262c3bd9eba874d47c3dbe2b368127e55802962d)
11833
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
11834
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
11835
+ props = CfnServiceEnvironmentProps(
11836
+ capacity_limits=capacity_limits,
11837
+ service_environment_type=service_environment_type,
11838
+ service_environment_name=service_environment_name,
11839
+ state=state,
11840
+ tags=tags,
11841
+ )
11842
+
11843
+ jsii.create(self.__class__, self, [scope, id, props])
11844
+
11845
+ @jsii.member(jsii_name="inspect")
11846
+ def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
11847
+ '''Examines the CloudFormation resource and discloses attributes.
11848
+
11849
+ :param inspector: tree inspector to collect and process attributes.
11850
+ '''
11851
+ if __debug__:
11852
+ type_hints = typing.get_type_hints(_typecheckingstub__96e0974d2660553889a9af3a927bfad81828948853f01018235f809576a4c6b9)
11853
+ check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
11854
+ return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
11855
+
11856
+ @jsii.member(jsii_name="renderProperties")
11857
+ def _render_properties(
11858
+ self,
11859
+ props: typing.Mapping[builtins.str, typing.Any],
11860
+ ) -> typing.Mapping[builtins.str, typing.Any]:
11861
+ '''
11862
+ :param props: -
11863
+ '''
11864
+ if __debug__:
11865
+ type_hints = typing.get_type_hints(_typecheckingstub__e6991ed0f2dc20fa74e5cde5971e4b3997019046ee7c1e1fc7eca96b677bc91b)
11866
+ check_type(argname="argument props", value=props, expected_type=type_hints["props"])
11867
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
11868
+
11869
+ @jsii.python.classproperty
11870
+ @jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
11871
+ def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
11872
+ '''The CloudFormation resource type name for this resource class.'''
11873
+ return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
11874
+
11875
+ @builtins.property
11876
+ @jsii.member(jsii_name="attrServiceEnvironmentArn")
11877
+ def attr_service_environment_arn(self) -> builtins.str:
11878
+ '''The Amazon Resource Name (ARN) of the service environment.
11879
+
11880
+ :cloudformationAttribute: ServiceEnvironmentArn
11881
+ '''
11882
+ return typing.cast(builtins.str, jsii.get(self, "attrServiceEnvironmentArn"))
11883
+
11884
+ @builtins.property
11885
+ @jsii.member(jsii_name="cdkTagManager")
11886
+ def cdk_tag_manager(self) -> _TagManager_0a598cb3:
11887
+ '''Tag Manager which manages the tags for this resource.'''
11888
+ return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
11889
+
11890
+ @builtins.property
11891
+ @jsii.member(jsii_name="cfnProperties")
11892
+ def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
11893
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
11894
+
11895
+ @builtins.property
11896
+ @jsii.member(jsii_name="capacityLimits")
11897
+ def capacity_limits(
11898
+ self,
11899
+ ) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnServiceEnvironment.CapacityLimitProperty"]]]:
11900
+ '''The capacity limits for the service environment.'''
11901
+ return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnServiceEnvironment.CapacityLimitProperty"]]], jsii.get(self, "capacityLimits"))
11902
+
11903
+ @capacity_limits.setter
11904
+ def capacity_limits(
11905
+ self,
11906
+ value: typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnServiceEnvironment.CapacityLimitProperty"]]],
11907
+ ) -> None:
11908
+ if __debug__:
11909
+ type_hints = typing.get_type_hints(_typecheckingstub__d996fbedbaec7f1ef9fada43375af4381f0a867d50517c77d6662e6e7d7d26ae)
11910
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
11911
+ jsii.set(self, "capacityLimits", value) # pyright: ignore[reportArgumentType]
11912
+
11913
+ @builtins.property
11914
+ @jsii.member(jsii_name="serviceEnvironmentType")
11915
+ def service_environment_type(self) -> builtins.str:
11916
+ '''The type of service environment.'''
11917
+ return typing.cast(builtins.str, jsii.get(self, "serviceEnvironmentType"))
11918
+
11919
+ @service_environment_type.setter
11920
+ def service_environment_type(self, value: builtins.str) -> None:
11921
+ if __debug__:
11922
+ type_hints = typing.get_type_hints(_typecheckingstub__555f27a186fb86df6655903dee02e46968e9230d8927d6c74bb13420e35fb703)
11923
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
11924
+ jsii.set(self, "serviceEnvironmentType", value) # pyright: ignore[reportArgumentType]
11925
+
11926
+ @builtins.property
11927
+ @jsii.member(jsii_name="serviceEnvironmentName")
11928
+ def service_environment_name(self) -> typing.Optional[builtins.str]:
11929
+ '''The name of the service environment.'''
11930
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "serviceEnvironmentName"))
11931
+
11932
+ @service_environment_name.setter
11933
+ def service_environment_name(self, value: typing.Optional[builtins.str]) -> None:
11934
+ if __debug__:
11935
+ type_hints = typing.get_type_hints(_typecheckingstub__2f9d1cde60619bebd040c4ca1b04e45af9a3d96ad1c7d934c1fe4f4c102b0fde)
11936
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
11937
+ jsii.set(self, "serviceEnvironmentName", value) # pyright: ignore[reportArgumentType]
11938
+
11939
+ @builtins.property
11940
+ @jsii.member(jsii_name="state")
11941
+ def state(self) -> typing.Optional[builtins.str]:
11942
+ '''The state of the service environment.'''
11943
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "state"))
11944
+
11945
+ @state.setter
11946
+ def state(self, value: typing.Optional[builtins.str]) -> None:
11947
+ if __debug__:
11948
+ type_hints = typing.get_type_hints(_typecheckingstub__eb9c6d092d73d302c59d162da7ef41f680de210ef8b625b0d6804765c19c16cf)
11949
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
11950
+ jsii.set(self, "state", value) # pyright: ignore[reportArgumentType]
11951
+
11952
+ @builtins.property
11953
+ @jsii.member(jsii_name="tags")
11954
+ def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
11955
+ '''The tags associated with the service environment.'''
11956
+ return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], jsii.get(self, "tags"))
11957
+
11958
+ @tags.setter
11959
+ def tags(
11960
+ self,
11961
+ value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
11962
+ ) -> None:
11963
+ if __debug__:
11964
+ type_hints = typing.get_type_hints(_typecheckingstub__07a3aaaa5bb4d6dbce1c225211ed2ba7848e8258ea1ae35767262fbfb6c68d93)
11965
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
11966
+ jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
11967
+
11968
+ @jsii.data_type(
11969
+ jsii_type="aws-cdk-lib.aws_batch.CfnServiceEnvironment.CapacityLimitProperty",
11970
+ jsii_struct_bases=[],
11971
+ name_mapping={"capacity_unit": "capacityUnit", "max_capacity": "maxCapacity"},
11972
+ )
11973
+ class CapacityLimitProperty:
11974
+ def __init__(
11975
+ self,
11976
+ *,
11977
+ capacity_unit: typing.Optional[builtins.str] = None,
11978
+ max_capacity: typing.Optional[jsii.Number] = None,
11979
+ ) -> None:
11980
+ '''Defines the capacity limit for a service environment.
11981
+
11982
+ This structure specifies the maximum amount of resources that can be used by service jobs in the environment.
11983
+
11984
+ :param capacity_unit: The unit of measure for the capacity limit. This defines how the maxCapacity value should be interpreted. For ``SAGEMAKER_TRAINING`` jobs, use ``NUM_INSTANCES`` .
11985
+ :param max_capacity: The maximum capacity available for the service environment. This value represents the maximum amount resources that can be allocated to service jobs. For example, ``maxCapacity=50`` , ``capacityUnit=NUM_INSTANCES`` . This indicates that the maximum number of instances that can be run on this service environment is 50. You could then run 5 SageMaker Training jobs that each use 10 instances. However, if you submit another job that requires 10 instances, it will wait in the queue.
11986
+
11987
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-serviceenvironment-capacitylimit.html
11988
+ :exampleMetadata: fixture=_generated
11989
+
11990
+ Example::
11991
+
11992
+ # The code below shows an example of how to instantiate this type.
11993
+ # The values are placeholders you should change.
11994
+ from aws_cdk import aws_batch as batch
11995
+
11996
+ capacity_limit_property = batch.CfnServiceEnvironment.CapacityLimitProperty(
11997
+ capacity_unit="capacityUnit",
11998
+ max_capacity=123
11999
+ )
12000
+ '''
12001
+ if __debug__:
12002
+ type_hints = typing.get_type_hints(_typecheckingstub__8d4366eeddf34eff3fc133ef72e4bd900563fba6b925f9d9524d8c92ac2f3e4a)
12003
+ check_type(argname="argument capacity_unit", value=capacity_unit, expected_type=type_hints["capacity_unit"])
12004
+ check_type(argname="argument max_capacity", value=max_capacity, expected_type=type_hints["max_capacity"])
12005
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
12006
+ if capacity_unit is not None:
12007
+ self._values["capacity_unit"] = capacity_unit
12008
+ if max_capacity is not None:
12009
+ self._values["max_capacity"] = max_capacity
12010
+
12011
+ @builtins.property
12012
+ def capacity_unit(self) -> typing.Optional[builtins.str]:
12013
+ '''The unit of measure for the capacity limit.
12014
+
12015
+ This defines how the maxCapacity value should be interpreted. For ``SAGEMAKER_TRAINING`` jobs, use ``NUM_INSTANCES`` .
12016
+
12017
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-serviceenvironment-capacitylimit.html#cfn-batch-serviceenvironment-capacitylimit-capacityunit
12018
+ '''
12019
+ result = self._values.get("capacity_unit")
12020
+ return typing.cast(typing.Optional[builtins.str], result)
12021
+
12022
+ @builtins.property
12023
+ def max_capacity(self) -> typing.Optional[jsii.Number]:
12024
+ '''The maximum capacity available for the service environment.
12025
+
12026
+ This value represents the maximum amount resources that can be allocated to service jobs.
12027
+
12028
+ For example, ``maxCapacity=50`` , ``capacityUnit=NUM_INSTANCES`` . This indicates that the maximum number of instances that can be run on this service environment is 50. You could then run 5 SageMaker Training jobs that each use 10 instances. However, if you submit another job that requires 10 instances, it will wait in the queue.
12029
+
12030
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-serviceenvironment-capacitylimit.html#cfn-batch-serviceenvironment-capacitylimit-maxcapacity
12031
+ '''
12032
+ result = self._values.get("max_capacity")
12033
+ return typing.cast(typing.Optional[jsii.Number], result)
12034
+
12035
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
12036
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
12037
+
12038
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
12039
+ return not (rhs == self)
12040
+
12041
+ def __repr__(self) -> str:
12042
+ return "CapacityLimitProperty(%s)" % ", ".join(
12043
+ k + "=" + repr(v) for k, v in self._values.items()
12044
+ )
12045
+
12046
+
12047
+ @jsii.data_type(
12048
+ jsii_type="aws-cdk-lib.aws_batch.CfnServiceEnvironmentProps",
12049
+ jsii_struct_bases=[],
12050
+ name_mapping={
12051
+ "capacity_limits": "capacityLimits",
12052
+ "service_environment_type": "serviceEnvironmentType",
12053
+ "service_environment_name": "serviceEnvironmentName",
12054
+ "state": "state",
12055
+ "tags": "tags",
12056
+ },
12057
+ )
12058
+ class CfnServiceEnvironmentProps:
12059
+ def __init__(
12060
+ self,
12061
+ *,
12062
+ capacity_limits: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnServiceEnvironment.CapacityLimitProperty, typing.Dict[builtins.str, typing.Any]]]]],
12063
+ service_environment_type: builtins.str,
12064
+ service_environment_name: typing.Optional[builtins.str] = None,
12065
+ state: typing.Optional[builtins.str] = None,
12066
+ tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
12067
+ ) -> None:
12068
+ '''Properties for defining a ``CfnServiceEnvironment``.
12069
+
12070
+ :param capacity_limits: The capacity limits for the service environment. This defines the maximum resources that can be used by service jobs in this environment.
12071
+ :param service_environment_type: The type of service environment. For SageMaker Training jobs, this value is ``SAGEMAKER_TRAINING`` .
12072
+ :param service_environment_name: The name of the service environment.
12073
+ :param state: The state of the service environment. Valid values are ``ENABLED`` and ``DISABLED`` .
12074
+ :param tags: The tags associated with the service environment. Each tag consists of a key and an optional value. For more information, see `Tagging your AWS Batch resources <https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html>`_ .
12075
+
12076
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-serviceenvironment.html
12077
+ :exampleMetadata: fixture=_generated
12078
+
12079
+ Example::
12080
+
12081
+ # The code below shows an example of how to instantiate this type.
12082
+ # The values are placeholders you should change.
12083
+ from aws_cdk import aws_batch as batch
12084
+
12085
+ cfn_service_environment_props = batch.CfnServiceEnvironmentProps(
12086
+ capacity_limits=[batch.CfnServiceEnvironment.CapacityLimitProperty(
12087
+ capacity_unit="capacityUnit",
12088
+ max_capacity=123
12089
+ )],
12090
+ service_environment_type="serviceEnvironmentType",
12091
+
12092
+ # the properties below are optional
12093
+ service_environment_name="serviceEnvironmentName",
12094
+ state="state",
12095
+ tags={
12096
+ "tags_key": "tags"
12097
+ }
12098
+ )
12099
+ '''
12100
+ if __debug__:
12101
+ type_hints = typing.get_type_hints(_typecheckingstub__dfdb5cc25e8550eb4e42278bd3377213122f3560aa9c8e788955ad66e1ecad9a)
12102
+ check_type(argname="argument capacity_limits", value=capacity_limits, expected_type=type_hints["capacity_limits"])
12103
+ check_type(argname="argument service_environment_type", value=service_environment_type, expected_type=type_hints["service_environment_type"])
12104
+ check_type(argname="argument service_environment_name", value=service_environment_name, expected_type=type_hints["service_environment_name"])
12105
+ check_type(argname="argument state", value=state, expected_type=type_hints["state"])
12106
+ check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
12107
+ self._values: typing.Dict[builtins.str, typing.Any] = {
12108
+ "capacity_limits": capacity_limits,
12109
+ "service_environment_type": service_environment_type,
12110
+ }
12111
+ if service_environment_name is not None:
12112
+ self._values["service_environment_name"] = service_environment_name
12113
+ if state is not None:
12114
+ self._values["state"] = state
12115
+ if tags is not None:
12116
+ self._values["tags"] = tags
12117
+
12118
+ @builtins.property
12119
+ def capacity_limits(
12120
+ self,
12121
+ ) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnServiceEnvironment.CapacityLimitProperty]]]:
12122
+ '''The capacity limits for the service environment.
12123
+
12124
+ This defines the maximum resources that can be used by service jobs in this environment.
12125
+
12126
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-serviceenvironment.html#cfn-batch-serviceenvironment-capacitylimits
12127
+ '''
12128
+ result = self._values.get("capacity_limits")
12129
+ assert result is not None, "Required property 'capacity_limits' is missing"
12130
+ return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnServiceEnvironment.CapacityLimitProperty]]], result)
12131
+
12132
+ @builtins.property
12133
+ def service_environment_type(self) -> builtins.str:
12134
+ '''The type of service environment.
12135
+
12136
+ For SageMaker Training jobs, this value is ``SAGEMAKER_TRAINING`` .
12137
+
12138
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-serviceenvironment.html#cfn-batch-serviceenvironment-serviceenvironmenttype
12139
+ '''
12140
+ result = self._values.get("service_environment_type")
12141
+ assert result is not None, "Required property 'service_environment_type' is missing"
12142
+ return typing.cast(builtins.str, result)
12143
+
12144
+ @builtins.property
12145
+ def service_environment_name(self) -> typing.Optional[builtins.str]:
12146
+ '''The name of the service environment.
12147
+
12148
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-serviceenvironment.html#cfn-batch-serviceenvironment-serviceenvironmentname
12149
+ '''
12150
+ result = self._values.get("service_environment_name")
12151
+ return typing.cast(typing.Optional[builtins.str], result)
12152
+
12153
+ @builtins.property
12154
+ def state(self) -> typing.Optional[builtins.str]:
12155
+ '''The state of the service environment.
12156
+
12157
+ Valid values are ``ENABLED`` and ``DISABLED`` .
12158
+
12159
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-serviceenvironment.html#cfn-batch-serviceenvironment-state
12160
+ '''
12161
+ result = self._values.get("state")
12162
+ return typing.cast(typing.Optional[builtins.str], result)
12163
+
12164
+ @builtins.property
12165
+ def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
12166
+ '''The tags associated with the service environment.
12167
+
12168
+ Each tag consists of a key and an optional value. For more information, see `Tagging your AWS Batch resources <https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html>`_ .
12169
+
12170
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-serviceenvironment.html#cfn-batch-serviceenvironment-tags
12171
+ '''
12172
+ result = self._values.get("tags")
12173
+ return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
12174
+
12175
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
12176
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
12177
+
12178
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
12179
+ return not (rhs == self)
12180
+
12181
+ def __repr__(self) -> str:
12182
+ return "CfnServiceEnvironmentProps(%s)" % ", ".join(
12183
+ k + "=" + repr(v) for k, v in self._values.items()
12184
+ )
12185
+
12186
+
11617
12187
  @jsii.data_type(
11618
12188
  jsii_type="aws-cdk-lib.aws_batch.ComputeEnvironmentProps",
11619
12189
  jsii_struct_bases=[],
@@ -24871,6 +25441,8 @@ __all__ = [
24871
25441
  "CfnJobQueueProps",
24872
25442
  "CfnSchedulingPolicy",
24873
25443
  "CfnSchedulingPolicyProps",
25444
+ "CfnServiceEnvironment",
25445
+ "CfnServiceEnvironmentProps",
24874
25446
  "ComputeEnvironmentProps",
24875
25447
  "CustomReason",
24876
25448
  "Device",
@@ -25817,11 +26389,13 @@ def _typecheckingstub__6480ab252bc515b2cdb6dc0c833877438fd473fd39eadf6b8a064969a
25817
26389
  scope: _constructs_77d1e7e8.Construct,
25818
26390
  id: builtins.str,
25819
26391
  *,
25820
- compute_environment_order: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobQueue.ComputeEnvironmentOrderProperty, typing.Dict[builtins.str, typing.Any]]]]],
25821
26392
  priority: jsii.Number,
26393
+ compute_environment_order: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobQueue.ComputeEnvironmentOrderProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
25822
26394
  job_queue_name: typing.Optional[builtins.str] = None,
26395
+ job_queue_type: typing.Optional[builtins.str] = None,
25823
26396
  job_state_time_limit_actions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobQueue.JobStateTimeLimitActionProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
25824
26397
  scheduling_policy_arn: typing.Optional[builtins.str] = None,
26398
+ service_environment_order: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobQueue.ServiceEnvironmentOrderProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
25825
26399
  state: typing.Optional[builtins.str] = None,
25826
26400
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
25827
26401
  ) -> None:
@@ -25840,14 +26414,14 @@ def _typecheckingstub__ce1fe922d9589f26998c2113a8a19530d98bfc01fe2462a8639a35935
25840
26414
  """Type checking stubs"""
25841
26415
  pass
25842
26416
 
25843
- def _typecheckingstub__aa1c2f3f42165309672c3fdf8c286ff9dc5e99756ec1a5b3ffca9e719d4c7036(
25844
- value: typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnJobQueue.ComputeEnvironmentOrderProperty]]],
26417
+ def _typecheckingstub__620331f74c116d31a6d43627e1a45e7041bc3c110194265f30dc193863c8ed94(
26418
+ value: jsii.Number,
25845
26419
  ) -> None:
25846
26420
  """Type checking stubs"""
25847
26421
  pass
25848
26422
 
25849
- def _typecheckingstub__620331f74c116d31a6d43627e1a45e7041bc3c110194265f30dc193863c8ed94(
25850
- value: jsii.Number,
26423
+ def _typecheckingstub__aa1c2f3f42165309672c3fdf8c286ff9dc5e99756ec1a5b3ffca9e719d4c7036(
26424
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnJobQueue.ComputeEnvironmentOrderProperty]]]],
25851
26425
  ) -> None:
25852
26426
  """Type checking stubs"""
25853
26427
  pass
@@ -25858,6 +26432,12 @@ def _typecheckingstub__3b88e27e62b46f1049263a61bb14f62674a8121083de64c2db32d5856
25858
26432
  """Type checking stubs"""
25859
26433
  pass
25860
26434
 
26435
+ def _typecheckingstub__cf7ba788adc96e65e278a0278721e322a7b2c5ad42c7d2cafd707c74e58d6e65(
26436
+ value: typing.Optional[builtins.str],
26437
+ ) -> None:
26438
+ """Type checking stubs"""
26439
+ pass
26440
+
25861
26441
  def _typecheckingstub__6e248d0029fc3043fabb974edf0f06b8f9f721a8f13ce794fd6c39b5ae3bb91e(
25862
26442
  value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnJobQueue.JobStateTimeLimitActionProperty]]]],
25863
26443
  ) -> None:
@@ -25870,6 +26450,12 @@ def _typecheckingstub__48a6952b4a8d4426554895a52085bf8c88701735f3f94a3426e81e56a
25870
26450
  """Type checking stubs"""
25871
26451
  pass
25872
26452
 
26453
+ def _typecheckingstub__59b5173dac1cdbe1bbc03df51cc226f4cddcdbdc7dd27fbfc1081cce50fc2d50(
26454
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnJobQueue.ServiceEnvironmentOrderProperty]]]],
26455
+ ) -> None:
26456
+ """Type checking stubs"""
26457
+ pass
26458
+
25873
26459
  def _typecheckingstub__e97106b05367d04f8f618f0b8edf4f7fdc4b88436890062ac6e344ede4e180b0(
25874
26460
  value: typing.Optional[builtins.str],
25875
26461
  ) -> None:
@@ -25900,13 +26486,23 @@ def _typecheckingstub__78ff35092216cfb2ffd2106f7da574c86c17494e3404a6f2ccdc020cc
25900
26486
  """Type checking stubs"""
25901
26487
  pass
25902
26488
 
26489
+ def _typecheckingstub__04c4b071542df93d5d7f1e7493b1bd821aaeae2008c337f58b1d399f309446bf(
26490
+ *,
26491
+ order: jsii.Number,
26492
+ service_environment: builtins.str,
26493
+ ) -> None:
26494
+ """Type checking stubs"""
26495
+ pass
26496
+
25903
26497
  def _typecheckingstub__009d6d384b1b723169e64875095e05fe852ae3931adf5ba2004d22475a76caa9(
25904
26498
  *,
25905
- compute_environment_order: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobQueue.ComputeEnvironmentOrderProperty, typing.Dict[builtins.str, typing.Any]]]]],
25906
26499
  priority: jsii.Number,
26500
+ compute_environment_order: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobQueue.ComputeEnvironmentOrderProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
25907
26501
  job_queue_name: typing.Optional[builtins.str] = None,
26502
+ job_queue_type: typing.Optional[builtins.str] = None,
25908
26503
  job_state_time_limit_actions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobQueue.JobStateTimeLimitActionProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
25909
26504
  scheduling_policy_arn: typing.Optional[builtins.str] = None,
26505
+ service_environment_order: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobQueue.ServiceEnvironmentOrderProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
25910
26506
  state: typing.Optional[builtins.str] = None,
25911
26507
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
25912
26508
  ) -> None:
@@ -25980,6 +26576,80 @@ def _typecheckingstub__baa72ee437297b58169f0020ba3178c321d8f72981fcd34857611be31
25980
26576
  """Type checking stubs"""
25981
26577
  pass
25982
26578
 
26579
+ def _typecheckingstub__a6f9de8dd6d91e1ef3541444262c3bd9eba874d47c3dbe2b368127e55802962d(
26580
+ scope: _constructs_77d1e7e8.Construct,
26581
+ id: builtins.str,
26582
+ *,
26583
+ capacity_limits: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnServiceEnvironment.CapacityLimitProperty, typing.Dict[builtins.str, typing.Any]]]]],
26584
+ service_environment_type: builtins.str,
26585
+ service_environment_name: typing.Optional[builtins.str] = None,
26586
+ state: typing.Optional[builtins.str] = None,
26587
+ tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
26588
+ ) -> None:
26589
+ """Type checking stubs"""
26590
+ pass
26591
+
26592
+ def _typecheckingstub__96e0974d2660553889a9af3a927bfad81828948853f01018235f809576a4c6b9(
26593
+ inspector: _TreeInspector_488e0dd5,
26594
+ ) -> None:
26595
+ """Type checking stubs"""
26596
+ pass
26597
+
26598
+ def _typecheckingstub__e6991ed0f2dc20fa74e5cde5971e4b3997019046ee7c1e1fc7eca96b677bc91b(
26599
+ props: typing.Mapping[builtins.str, typing.Any],
26600
+ ) -> None:
26601
+ """Type checking stubs"""
26602
+ pass
26603
+
26604
+ def _typecheckingstub__d996fbedbaec7f1ef9fada43375af4381f0a867d50517c77d6662e6e7d7d26ae(
26605
+ value: typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnServiceEnvironment.CapacityLimitProperty]]],
26606
+ ) -> None:
26607
+ """Type checking stubs"""
26608
+ pass
26609
+
26610
+ def _typecheckingstub__555f27a186fb86df6655903dee02e46968e9230d8927d6c74bb13420e35fb703(
26611
+ value: builtins.str,
26612
+ ) -> None:
26613
+ """Type checking stubs"""
26614
+ pass
26615
+
26616
+ def _typecheckingstub__2f9d1cde60619bebd040c4ca1b04e45af9a3d96ad1c7d934c1fe4f4c102b0fde(
26617
+ value: typing.Optional[builtins.str],
26618
+ ) -> None:
26619
+ """Type checking stubs"""
26620
+ pass
26621
+
26622
+ def _typecheckingstub__eb9c6d092d73d302c59d162da7ef41f680de210ef8b625b0d6804765c19c16cf(
26623
+ value: typing.Optional[builtins.str],
26624
+ ) -> None:
26625
+ """Type checking stubs"""
26626
+ pass
26627
+
26628
+ def _typecheckingstub__07a3aaaa5bb4d6dbce1c225211ed2ba7848e8258ea1ae35767262fbfb6c68d93(
26629
+ value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
26630
+ ) -> None:
26631
+ """Type checking stubs"""
26632
+ pass
26633
+
26634
+ def _typecheckingstub__8d4366eeddf34eff3fc133ef72e4bd900563fba6b925f9d9524d8c92ac2f3e4a(
26635
+ *,
26636
+ capacity_unit: typing.Optional[builtins.str] = None,
26637
+ max_capacity: typing.Optional[jsii.Number] = None,
26638
+ ) -> None:
26639
+ """Type checking stubs"""
26640
+ pass
26641
+
26642
+ def _typecheckingstub__dfdb5cc25e8550eb4e42278bd3377213122f3560aa9c8e788955ad66e1ecad9a(
26643
+ *,
26644
+ capacity_limits: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnServiceEnvironment.CapacityLimitProperty, typing.Dict[builtins.str, typing.Any]]]]],
26645
+ service_environment_type: builtins.str,
26646
+ service_environment_name: typing.Optional[builtins.str] = None,
26647
+ state: typing.Optional[builtins.str] = None,
26648
+ tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
26649
+ ) -> None:
26650
+ """Type checking stubs"""
26651
+ pass
26652
+
25983
26653
  def _typecheckingstub__ed356ed6d550d61b3cd35694bb99d63fcbc2d06693243747eaf82004f05f9958(
25984
26654
  *,
25985
26655
  compute_environment_name: typing.Optional[builtins.str] = None,