aws-cdk-lib 2.171.1__py3-none-any.whl → 2.172.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 (47) hide show
  1. aws_cdk/__init__.py +471 -161
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.171.1.jsii.tgz → aws-cdk-lib@2.172.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_apigateway/__init__.py +1314 -124
  5. aws_cdk/aws_appsync/__init__.py +159 -136
  6. aws_cdk/aws_autoscaling/__init__.py +81 -24
  7. aws_cdk/aws_bedrock/__init__.py +48 -0
  8. aws_cdk/aws_chatbot/__init__.py +775 -0
  9. aws_cdk/aws_cloudformation/__init__.py +240 -159
  10. aws_cdk/aws_cloudfront/__init__.py +11 -5
  11. aws_cdk/aws_cloudtrail/__init__.py +753 -0
  12. aws_cdk/aws_cognito/__init__.py +825 -4
  13. aws_cdk/aws_connect/__init__.py +429 -0
  14. aws_cdk/aws_customerprofiles/__init__.py +3148 -0
  15. aws_cdk/aws_ec2/__init__.py +872 -5
  16. aws_cdk/aws_ecs/__init__.py +12 -7
  17. aws_cdk/aws_eks/__init__.py +709 -0
  18. aws_cdk/aws_elasticloadbalancingv2/__init__.py +309 -55
  19. aws_cdk/aws_events/__init__.py +515 -8
  20. aws_cdk/aws_iot/__init__.py +42 -4
  21. aws_cdk/aws_iotfleetwise/__init__.py +510 -0
  22. aws_cdk/aws_iotsitewise/__init__.py +156 -0
  23. aws_cdk/aws_lambda/__init__.py +14 -8
  24. aws_cdk/aws_lambda_event_sources/__init__.py +2 -1
  25. aws_cdk/aws_lambda_nodejs/__init__.py +11 -11
  26. aws_cdk/aws_m2/__init__.py +289 -0
  27. aws_cdk/aws_mwaa/__init__.py +6 -6
  28. aws_cdk/aws_opensearchserverless/__init__.py +249 -1
  29. aws_cdk/aws_pipes/__init__.py +14 -30
  30. aws_cdk/aws_qbusiness/__init__.py +3 -1
  31. aws_cdk/aws_quicksight/__init__.py +8270 -10
  32. aws_cdk/aws_rbin/__init__.py +53 -34
  33. aws_cdk/aws_rds/__init__.py +140 -8
  34. aws_cdk/aws_resourcegroups/__init__.py +349 -0
  35. aws_cdk/aws_route53_targets/__init__.py +82 -0
  36. aws_cdk/aws_route53resolver/__init__.py +15 -6
  37. aws_cdk/aws_s3express/__init__.py +403 -2
  38. aws_cdk/aws_sagemaker/__init__.py +124 -112
  39. aws_cdk/aws_ses/__init__.py +79 -41
  40. aws_cdk/aws_wisdom/__init__.py +4713 -172
  41. aws_cdk/aws_workspacesweb/__init__.py +1024 -0
  42. {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/METADATA +1 -1
  43. {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/RECORD +47 -47
  44. {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/LICENSE +0 -0
  45. {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/NOTICE +0 -0
  46. {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/WHEEL +0 -0
  47. {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/top_level.txt +0 -0
@@ -16076,20 +16076,14 @@ class CfnInferenceComponent(
16076
16076
 
16077
16077
  cfn_inference_component = sagemaker.CfnInferenceComponent(self, "MyCfnInferenceComponent",
16078
16078
  endpoint_name="endpointName",
16079
- runtime_config=sagemaker.CfnInferenceComponent.InferenceComponentRuntimeConfigProperty(
16080
- copy_count=123,
16081
- current_copy_count=123,
16082
- desired_copy_count=123
16083
- ),
16084
16079
  specification=sagemaker.CfnInferenceComponent.InferenceComponentSpecificationProperty(
16080
+ base_inference_component_name="baseInferenceComponentName",
16085
16081
  compute_resource_requirements=sagemaker.CfnInferenceComponent.InferenceComponentComputeResourceRequirementsProperty(
16086
16082
  max_memory_required_in_mb=123,
16087
16083
  min_memory_required_in_mb=123,
16088
16084
  number_of_accelerator_devices_required=123,
16089
16085
  number_of_cpu_cores_required=123
16090
16086
  ),
16091
-
16092
- # the properties below are optional
16093
16087
  container=sagemaker.CfnInferenceComponent.InferenceComponentContainerSpecificationProperty(
16094
16088
  artifact_url="artifactUrl",
16095
16089
  deployed_image=sagemaker.CfnInferenceComponent.DeployedImageProperty(
@@ -16108,15 +16102,20 @@ class CfnInferenceComponent(
16108
16102
  model_data_download_timeout_in_seconds=123
16109
16103
  )
16110
16104
  ),
16111
- variant_name="variantName",
16112
16105
 
16113
16106
  # the properties below are optional
16114
16107
  endpoint_arn="endpointArn",
16115
16108
  inference_component_name="inferenceComponentName",
16109
+ runtime_config=sagemaker.CfnInferenceComponent.InferenceComponentRuntimeConfigProperty(
16110
+ copy_count=123,
16111
+ current_copy_count=123,
16112
+ desired_copy_count=123
16113
+ ),
16116
16114
  tags=[CfnTag(
16117
16115
  key="key",
16118
16116
  value="value"
16119
- )]
16117
+ )],
16118
+ variant_name="variantName"
16120
16119
  )
16121
16120
  '''
16122
16121
 
@@ -16126,23 +16125,23 @@ class CfnInferenceComponent(
16126
16125
  id: builtins.str,
16127
16126
  *,
16128
16127
  endpoint_name: builtins.str,
16129
- runtime_config: typing.Union[_IResolvable_da3f097b, typing.Union["CfnInferenceComponent.InferenceComponentRuntimeConfigProperty", typing.Dict[builtins.str, typing.Any]]],
16130
16128
  specification: typing.Union[_IResolvable_da3f097b, typing.Union["CfnInferenceComponent.InferenceComponentSpecificationProperty", typing.Dict[builtins.str, typing.Any]]],
16131
- variant_name: builtins.str,
16132
16129
  endpoint_arn: typing.Optional[builtins.str] = None,
16133
16130
  inference_component_name: typing.Optional[builtins.str] = None,
16131
+ runtime_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnInferenceComponent.InferenceComponentRuntimeConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
16134
16132
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
16133
+ variant_name: typing.Optional[builtins.str] = None,
16135
16134
  ) -> None:
16136
16135
  '''
16137
16136
  :param scope: Scope in which this resource is defined.
16138
16137
  :param id: Construct identifier for this resource (unique in its scope).
16139
16138
  :param endpoint_name: The name of the endpoint that hosts the inference component.
16140
- :param runtime_config: The runtime config for the inference component.
16141
16139
  :param specification: The specification for the inference component.
16142
- :param variant_name: The name of the production variant that hosts the inference component.
16143
16140
  :param endpoint_arn: The Amazon Resource Name (ARN) of the endpoint that hosts the inference component.
16144
16141
  :param inference_component_name: The name of the inference component.
16142
+ :param runtime_config: The runtime config for the inference component.
16145
16143
  :param tags: An array of tags to apply to the resource.
16144
+ :param variant_name: The name of the production variant that hosts the inference component.
16146
16145
  '''
16147
16146
  if __debug__:
16148
16147
  type_hints = typing.get_type_hints(_typecheckingstub__3f4e5766b29b94468be54bb573abdb408c06e9ece9272100939b3c0180556e58)
@@ -16150,12 +16149,12 @@ class CfnInferenceComponent(
16150
16149
  check_type(argname="argument id", value=id, expected_type=type_hints["id"])
16151
16150
  props = CfnInferenceComponentProps(
16152
16151
  endpoint_name=endpoint_name,
16153
- runtime_config=runtime_config,
16154
16152
  specification=specification,
16155
- variant_name=variant_name,
16156
16153
  endpoint_arn=endpoint_arn,
16157
16154
  inference_component_name=inference_component_name,
16155
+ runtime_config=runtime_config,
16158
16156
  tags=tags,
16157
+ variant_name=variant_name,
16159
16158
  )
16160
16159
 
16161
16160
  jsii.create(self.__class__, self, [scope, id, props])
@@ -16285,24 +16284,6 @@ class CfnInferenceComponent(
16285
16284
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
16286
16285
  jsii.set(self, "endpointName", value) # pyright: ignore[reportArgumentType]
16287
16286
 
16288
- @builtins.property
16289
- @jsii.member(jsii_name="runtimeConfig")
16290
- def runtime_config(
16291
- self,
16292
- ) -> typing.Union[_IResolvable_da3f097b, "CfnInferenceComponent.InferenceComponentRuntimeConfigProperty"]:
16293
- '''The runtime config for the inference component.'''
16294
- return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnInferenceComponent.InferenceComponentRuntimeConfigProperty"], jsii.get(self, "runtimeConfig"))
16295
-
16296
- @runtime_config.setter
16297
- def runtime_config(
16298
- self,
16299
- value: typing.Union[_IResolvable_da3f097b, "CfnInferenceComponent.InferenceComponentRuntimeConfigProperty"],
16300
- ) -> None:
16301
- if __debug__:
16302
- type_hints = typing.get_type_hints(_typecheckingstub__4e7c351a25e5bcfa57adb1a6effe98407a73bd29e017ee9e9dea5d09a2106d9c)
16303
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
16304
- jsii.set(self, "runtimeConfig", value) # pyright: ignore[reportArgumentType]
16305
-
16306
16287
  @builtins.property
16307
16288
  @jsii.member(jsii_name="specification")
16308
16289
  def specification(
@@ -16321,19 +16302,6 @@ class CfnInferenceComponent(
16321
16302
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
16322
16303
  jsii.set(self, "specification", value) # pyright: ignore[reportArgumentType]
16323
16304
 
16324
- @builtins.property
16325
- @jsii.member(jsii_name="variantName")
16326
- def variant_name(self) -> builtins.str:
16327
- '''The name of the production variant that hosts the inference component.'''
16328
- return typing.cast(builtins.str, jsii.get(self, "variantName"))
16329
-
16330
- @variant_name.setter
16331
- def variant_name(self, value: builtins.str) -> None:
16332
- if __debug__:
16333
- type_hints = typing.get_type_hints(_typecheckingstub__ca03af9ff83216f8a0636af33c0e4a7a2eb600513b2eed7eb75f082151eb70e5)
16334
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
16335
- jsii.set(self, "variantName", value) # pyright: ignore[reportArgumentType]
16336
-
16337
16305
  @builtins.property
16338
16306
  @jsii.member(jsii_name="endpointArn")
16339
16307
  def endpoint_arn(self) -> typing.Optional[builtins.str]:
@@ -16360,6 +16328,24 @@ class CfnInferenceComponent(
16360
16328
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
16361
16329
  jsii.set(self, "inferenceComponentName", value) # pyright: ignore[reportArgumentType]
16362
16330
 
16331
+ @builtins.property
16332
+ @jsii.member(jsii_name="runtimeConfig")
16333
+ def runtime_config(
16334
+ self,
16335
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnInferenceComponent.InferenceComponentRuntimeConfigProperty"]]:
16336
+ '''The runtime config for the inference component.'''
16337
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnInferenceComponent.InferenceComponentRuntimeConfigProperty"]], jsii.get(self, "runtimeConfig"))
16338
+
16339
+ @runtime_config.setter
16340
+ def runtime_config(
16341
+ self,
16342
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnInferenceComponent.InferenceComponentRuntimeConfigProperty"]],
16343
+ ) -> None:
16344
+ if __debug__:
16345
+ type_hints = typing.get_type_hints(_typecheckingstub__4e7c351a25e5bcfa57adb1a6effe98407a73bd29e017ee9e9dea5d09a2106d9c)
16346
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
16347
+ jsii.set(self, "runtimeConfig", value) # pyright: ignore[reportArgumentType]
16348
+
16363
16349
  @builtins.property
16364
16350
  @jsii.member(jsii_name="tags")
16365
16351
  def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
@@ -16373,6 +16359,19 @@ class CfnInferenceComponent(
16373
16359
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
16374
16360
  jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
16375
16361
 
16362
+ @builtins.property
16363
+ @jsii.member(jsii_name="variantName")
16364
+ def variant_name(self) -> typing.Optional[builtins.str]:
16365
+ '''The name of the production variant that hosts the inference component.'''
16366
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "variantName"))
16367
+
16368
+ @variant_name.setter
16369
+ def variant_name(self, value: typing.Optional[builtins.str]) -> None:
16370
+ if __debug__:
16371
+ type_hints = typing.get_type_hints(_typecheckingstub__ca03af9ff83216f8a0636af33c0e4a7a2eb600513b2eed7eb75f082151eb70e5)
16372
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
16373
+ jsii.set(self, "variantName", value) # pyright: ignore[reportArgumentType]
16374
+
16376
16375
  @jsii.data_type(
16377
16376
  jsii_type="aws-cdk-lib.aws_sagemaker.CfnInferenceComponent.DeployedImageProperty",
16378
16377
  jsii_struct_bases=[],
@@ -16788,6 +16787,7 @@ class CfnInferenceComponent(
16788
16787
  jsii_type="aws-cdk-lib.aws_sagemaker.CfnInferenceComponent.InferenceComponentSpecificationProperty",
16789
16788
  jsii_struct_bases=[],
16790
16789
  name_mapping={
16790
+ "base_inference_component_name": "baseInferenceComponentName",
16791
16791
  "compute_resource_requirements": "computeResourceRequirements",
16792
16792
  "container": "container",
16793
16793
  "model_name": "modelName",
@@ -16798,13 +16798,15 @@ class CfnInferenceComponent(
16798
16798
  def __init__(
16799
16799
  self,
16800
16800
  *,
16801
- compute_resource_requirements: typing.Union[_IResolvable_da3f097b, typing.Union["CfnInferenceComponent.InferenceComponentComputeResourceRequirementsProperty", typing.Dict[builtins.str, typing.Any]]],
16801
+ base_inference_component_name: typing.Optional[builtins.str] = None,
16802
+ compute_resource_requirements: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnInferenceComponent.InferenceComponentComputeResourceRequirementsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
16802
16803
  container: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnInferenceComponent.InferenceComponentContainerSpecificationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
16803
16804
  model_name: typing.Optional[builtins.str] = None,
16804
16805
  startup_parameters: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnInferenceComponent.InferenceComponentStartupParametersProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
16805
16806
  ) -> None:
16806
16807
  '''Details about the resources to deploy with this inference component, including the model, container, and compute resources.
16807
16808
 
16809
+ :param base_inference_component_name: The name of the base inference component.
16808
16810
  :param compute_resource_requirements: The compute resources allocated to run the model assigned to the inference component.
16809
16811
  :param container: Defines a container that provides the runtime environment for a model that you deploy with an inference component.
16810
16812
  :param model_name: The name of an existing SageMaker model object in your account that you want to deploy with the inference component.
@@ -16820,14 +16822,13 @@ class CfnInferenceComponent(
16820
16822
  from aws_cdk import aws_sagemaker as sagemaker
16821
16823
 
16822
16824
  inference_component_specification_property = sagemaker.CfnInferenceComponent.InferenceComponentSpecificationProperty(
16825
+ base_inference_component_name="baseInferenceComponentName",
16823
16826
  compute_resource_requirements=sagemaker.CfnInferenceComponent.InferenceComponentComputeResourceRequirementsProperty(
16824
16827
  max_memory_required_in_mb=123,
16825
16828
  min_memory_required_in_mb=123,
16826
16829
  number_of_accelerator_devices_required=123,
16827
16830
  number_of_cpu_cores_required=123
16828
16831
  ),
16829
-
16830
- # the properties below are optional
16831
16832
  container=sagemaker.CfnInferenceComponent.InferenceComponentContainerSpecificationProperty(
16832
16833
  artifact_url="artifactUrl",
16833
16834
  deployed_image=sagemaker.CfnInferenceComponent.DeployedImageProperty(
@@ -16849,13 +16850,16 @@ class CfnInferenceComponent(
16849
16850
  '''
16850
16851
  if __debug__:
16851
16852
  type_hints = typing.get_type_hints(_typecheckingstub__6a0b62210860358f55c428526365b9cb1755209df1a27a1d8b73278ffe9fe251)
16853
+ check_type(argname="argument base_inference_component_name", value=base_inference_component_name, expected_type=type_hints["base_inference_component_name"])
16852
16854
  check_type(argname="argument compute_resource_requirements", value=compute_resource_requirements, expected_type=type_hints["compute_resource_requirements"])
16853
16855
  check_type(argname="argument container", value=container, expected_type=type_hints["container"])
16854
16856
  check_type(argname="argument model_name", value=model_name, expected_type=type_hints["model_name"])
16855
16857
  check_type(argname="argument startup_parameters", value=startup_parameters, expected_type=type_hints["startup_parameters"])
16856
- self._values: typing.Dict[builtins.str, typing.Any] = {
16857
- "compute_resource_requirements": compute_resource_requirements,
16858
- }
16858
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
16859
+ if base_inference_component_name is not None:
16860
+ self._values["base_inference_component_name"] = base_inference_component_name
16861
+ if compute_resource_requirements is not None:
16862
+ self._values["compute_resource_requirements"] = compute_resource_requirements
16859
16863
  if container is not None:
16860
16864
  self._values["container"] = container
16861
16865
  if model_name is not None:
@@ -16863,17 +16867,25 @@ class CfnInferenceComponent(
16863
16867
  if startup_parameters is not None:
16864
16868
  self._values["startup_parameters"] = startup_parameters
16865
16869
 
16870
+ @builtins.property
16871
+ def base_inference_component_name(self) -> typing.Optional[builtins.str]:
16872
+ '''The name of the base inference component.
16873
+
16874
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-inferencecomponent-inferencecomponentspecification.html#cfn-sagemaker-inferencecomponent-inferencecomponentspecification-baseinferencecomponentname
16875
+ '''
16876
+ result = self._values.get("base_inference_component_name")
16877
+ return typing.cast(typing.Optional[builtins.str], result)
16878
+
16866
16879
  @builtins.property
16867
16880
  def compute_resource_requirements(
16868
16881
  self,
16869
- ) -> typing.Union[_IResolvable_da3f097b, "CfnInferenceComponent.InferenceComponentComputeResourceRequirementsProperty"]:
16882
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnInferenceComponent.InferenceComponentComputeResourceRequirementsProperty"]]:
16870
16883
  '''The compute resources allocated to run the model assigned to the inference component.
16871
16884
 
16872
16885
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-inferencecomponent-inferencecomponentspecification.html#cfn-sagemaker-inferencecomponent-inferencecomponentspecification-computeresourcerequirements
16873
16886
  '''
16874
16887
  result = self._values.get("compute_resource_requirements")
16875
- assert result is not None, "Required property 'compute_resource_requirements' is missing"
16876
- return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnInferenceComponent.InferenceComponentComputeResourceRequirementsProperty"], result)
16888
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnInferenceComponent.InferenceComponentComputeResourceRequirementsProperty"]], result)
16877
16889
 
16878
16890
  @builtins.property
16879
16891
  def container(
@@ -17002,12 +17014,12 @@ class CfnInferenceComponent(
17002
17014
  jsii_struct_bases=[],
17003
17015
  name_mapping={
17004
17016
  "endpoint_name": "endpointName",
17005
- "runtime_config": "runtimeConfig",
17006
17017
  "specification": "specification",
17007
- "variant_name": "variantName",
17008
17018
  "endpoint_arn": "endpointArn",
17009
17019
  "inference_component_name": "inferenceComponentName",
17020
+ "runtime_config": "runtimeConfig",
17010
17021
  "tags": "tags",
17022
+ "variant_name": "variantName",
17011
17023
  },
17012
17024
  )
17013
17025
  class CfnInferenceComponentProps:
@@ -17015,22 +17027,22 @@ class CfnInferenceComponentProps:
17015
17027
  self,
17016
17028
  *,
17017
17029
  endpoint_name: builtins.str,
17018
- runtime_config: typing.Union[_IResolvable_da3f097b, typing.Union[CfnInferenceComponent.InferenceComponentRuntimeConfigProperty, typing.Dict[builtins.str, typing.Any]]],
17019
17030
  specification: typing.Union[_IResolvable_da3f097b, typing.Union[CfnInferenceComponent.InferenceComponentSpecificationProperty, typing.Dict[builtins.str, typing.Any]]],
17020
- variant_name: builtins.str,
17021
17031
  endpoint_arn: typing.Optional[builtins.str] = None,
17022
17032
  inference_component_name: typing.Optional[builtins.str] = None,
17033
+ runtime_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInferenceComponent.InferenceComponentRuntimeConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
17023
17034
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
17035
+ variant_name: typing.Optional[builtins.str] = None,
17024
17036
  ) -> None:
17025
17037
  '''Properties for defining a ``CfnInferenceComponent``.
17026
17038
 
17027
17039
  :param endpoint_name: The name of the endpoint that hosts the inference component.
17028
- :param runtime_config: The runtime config for the inference component.
17029
17040
  :param specification: The specification for the inference component.
17030
- :param variant_name: The name of the production variant that hosts the inference component.
17031
17041
  :param endpoint_arn: The Amazon Resource Name (ARN) of the endpoint that hosts the inference component.
17032
17042
  :param inference_component_name: The name of the inference component.
17043
+ :param runtime_config: The runtime config for the inference component.
17033
17044
  :param tags: An array of tags to apply to the resource.
17045
+ :param variant_name: The name of the production variant that hosts the inference component.
17034
17046
 
17035
17047
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-inferencecomponent.html
17036
17048
  :exampleMetadata: fixture=_generated
@@ -17043,20 +17055,14 @@ class CfnInferenceComponentProps:
17043
17055
 
17044
17056
  cfn_inference_component_props = sagemaker.CfnInferenceComponentProps(
17045
17057
  endpoint_name="endpointName",
17046
- runtime_config=sagemaker.CfnInferenceComponent.InferenceComponentRuntimeConfigProperty(
17047
- copy_count=123,
17048
- current_copy_count=123,
17049
- desired_copy_count=123
17050
- ),
17051
17058
  specification=sagemaker.CfnInferenceComponent.InferenceComponentSpecificationProperty(
17059
+ base_inference_component_name="baseInferenceComponentName",
17052
17060
  compute_resource_requirements=sagemaker.CfnInferenceComponent.InferenceComponentComputeResourceRequirementsProperty(
17053
17061
  max_memory_required_in_mb=123,
17054
17062
  min_memory_required_in_mb=123,
17055
17063
  number_of_accelerator_devices_required=123,
17056
17064
  number_of_cpu_cores_required=123
17057
17065
  ),
17058
-
17059
- # the properties below are optional
17060
17066
  container=sagemaker.CfnInferenceComponent.InferenceComponentContainerSpecificationProperty(
17061
17067
  artifact_url="artifactUrl",
17062
17068
  deployed_image=sagemaker.CfnInferenceComponent.DeployedImageProperty(
@@ -17075,38 +17081,45 @@ class CfnInferenceComponentProps:
17075
17081
  model_data_download_timeout_in_seconds=123
17076
17082
  )
17077
17083
  ),
17078
- variant_name="variantName",
17079
17084
 
17080
17085
  # the properties below are optional
17081
17086
  endpoint_arn="endpointArn",
17082
17087
  inference_component_name="inferenceComponentName",
17088
+ runtime_config=sagemaker.CfnInferenceComponent.InferenceComponentRuntimeConfigProperty(
17089
+ copy_count=123,
17090
+ current_copy_count=123,
17091
+ desired_copy_count=123
17092
+ ),
17083
17093
  tags=[CfnTag(
17084
17094
  key="key",
17085
17095
  value="value"
17086
- )]
17096
+ )],
17097
+ variant_name="variantName"
17087
17098
  )
17088
17099
  '''
17089
17100
  if __debug__:
17090
17101
  type_hints = typing.get_type_hints(_typecheckingstub__3926edf39d044760bb8195e9466dfa81ab70056fcc1e3a9053c6c3d90bcaaafa)
17091
17102
  check_type(argname="argument endpoint_name", value=endpoint_name, expected_type=type_hints["endpoint_name"])
17092
- check_type(argname="argument runtime_config", value=runtime_config, expected_type=type_hints["runtime_config"])
17093
17103
  check_type(argname="argument specification", value=specification, expected_type=type_hints["specification"])
17094
- check_type(argname="argument variant_name", value=variant_name, expected_type=type_hints["variant_name"])
17095
17104
  check_type(argname="argument endpoint_arn", value=endpoint_arn, expected_type=type_hints["endpoint_arn"])
17096
17105
  check_type(argname="argument inference_component_name", value=inference_component_name, expected_type=type_hints["inference_component_name"])
17106
+ check_type(argname="argument runtime_config", value=runtime_config, expected_type=type_hints["runtime_config"])
17097
17107
  check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
17108
+ check_type(argname="argument variant_name", value=variant_name, expected_type=type_hints["variant_name"])
17098
17109
  self._values: typing.Dict[builtins.str, typing.Any] = {
17099
17110
  "endpoint_name": endpoint_name,
17100
- "runtime_config": runtime_config,
17101
17111
  "specification": specification,
17102
- "variant_name": variant_name,
17103
17112
  }
17104
17113
  if endpoint_arn is not None:
17105
17114
  self._values["endpoint_arn"] = endpoint_arn
17106
17115
  if inference_component_name is not None:
17107
17116
  self._values["inference_component_name"] = inference_component_name
17117
+ if runtime_config is not None:
17118
+ self._values["runtime_config"] = runtime_config
17108
17119
  if tags is not None:
17109
17120
  self._values["tags"] = tags
17121
+ if variant_name is not None:
17122
+ self._values["variant_name"] = variant_name
17110
17123
 
17111
17124
  @builtins.property
17112
17125
  def endpoint_name(self) -> builtins.str:
@@ -17118,18 +17131,6 @@ class CfnInferenceComponentProps:
17118
17131
  assert result is not None, "Required property 'endpoint_name' is missing"
17119
17132
  return typing.cast(builtins.str, result)
17120
17133
 
17121
- @builtins.property
17122
- def runtime_config(
17123
- self,
17124
- ) -> typing.Union[_IResolvable_da3f097b, CfnInferenceComponent.InferenceComponentRuntimeConfigProperty]:
17125
- '''The runtime config for the inference component.
17126
-
17127
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-inferencecomponent.html#cfn-sagemaker-inferencecomponent-runtimeconfig
17128
- '''
17129
- result = self._values.get("runtime_config")
17130
- assert result is not None, "Required property 'runtime_config' is missing"
17131
- return typing.cast(typing.Union[_IResolvable_da3f097b, CfnInferenceComponent.InferenceComponentRuntimeConfigProperty], result)
17132
-
17133
17134
  @builtins.property
17134
17135
  def specification(
17135
17136
  self,
@@ -17142,16 +17143,6 @@ class CfnInferenceComponentProps:
17142
17143
  assert result is not None, "Required property 'specification' is missing"
17143
17144
  return typing.cast(typing.Union[_IResolvable_da3f097b, CfnInferenceComponent.InferenceComponentSpecificationProperty], result)
17144
17145
 
17145
- @builtins.property
17146
- def variant_name(self) -> builtins.str:
17147
- '''The name of the production variant that hosts the inference component.
17148
-
17149
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-inferencecomponent.html#cfn-sagemaker-inferencecomponent-variantname
17150
- '''
17151
- result = self._values.get("variant_name")
17152
- assert result is not None, "Required property 'variant_name' is missing"
17153
- return typing.cast(builtins.str, result)
17154
-
17155
17146
  @builtins.property
17156
17147
  def endpoint_arn(self) -> typing.Optional[builtins.str]:
17157
17148
  '''The Amazon Resource Name (ARN) of the endpoint that hosts the inference component.
@@ -17170,6 +17161,17 @@ class CfnInferenceComponentProps:
17170
17161
  result = self._values.get("inference_component_name")
17171
17162
  return typing.cast(typing.Optional[builtins.str], result)
17172
17163
 
17164
+ @builtins.property
17165
+ def runtime_config(
17166
+ self,
17167
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnInferenceComponent.InferenceComponentRuntimeConfigProperty]]:
17168
+ '''The runtime config for the inference component.
17169
+
17170
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-inferencecomponent.html#cfn-sagemaker-inferencecomponent-runtimeconfig
17171
+ '''
17172
+ result = self._values.get("runtime_config")
17173
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnInferenceComponent.InferenceComponentRuntimeConfigProperty]], result)
17174
+
17173
17175
  @builtins.property
17174
17176
  def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
17175
17177
  '''An array of tags to apply to the resource.
@@ -17179,6 +17181,15 @@ class CfnInferenceComponentProps:
17179
17181
  result = self._values.get("tags")
17180
17182
  return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
17181
17183
 
17184
+ @builtins.property
17185
+ def variant_name(self) -> typing.Optional[builtins.str]:
17186
+ '''The name of the production variant that hosts the inference component.
17187
+
17188
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-inferencecomponent.html#cfn-sagemaker-inferencecomponent-variantname
17189
+ '''
17190
+ result = self._values.get("variant_name")
17191
+ return typing.cast(typing.Optional[builtins.str], result)
17192
+
17182
17193
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
17183
17194
  return isinstance(rhs, self.__class__) and rhs._values == self._values
17184
17195
 
@@ -50057,12 +50068,12 @@ def _typecheckingstub__3f4e5766b29b94468be54bb573abdb408c06e9ece9272100939b3c018
50057
50068
  id: builtins.str,
50058
50069
  *,
50059
50070
  endpoint_name: builtins.str,
50060
- runtime_config: typing.Union[_IResolvable_da3f097b, typing.Union[CfnInferenceComponent.InferenceComponentRuntimeConfigProperty, typing.Dict[builtins.str, typing.Any]]],
50061
50071
  specification: typing.Union[_IResolvable_da3f097b, typing.Union[CfnInferenceComponent.InferenceComponentSpecificationProperty, typing.Dict[builtins.str, typing.Any]]],
50062
- variant_name: builtins.str,
50063
50072
  endpoint_arn: typing.Optional[builtins.str] = None,
50064
50073
  inference_component_name: typing.Optional[builtins.str] = None,
50074
+ runtime_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInferenceComponent.InferenceComponentRuntimeConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
50065
50075
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
50076
+ variant_name: typing.Optional[builtins.str] = None,
50066
50077
  ) -> None:
50067
50078
  """Type checking stubs"""
50068
50079
  pass
@@ -50085,32 +50096,26 @@ def _typecheckingstub__b5da5a7b9146494fb112ee7d607f46334dc3051d93d50b77735f62bdd
50085
50096
  """Type checking stubs"""
50086
50097
  pass
50087
50098
 
50088
- def _typecheckingstub__4e7c351a25e5bcfa57adb1a6effe98407a73bd29e017ee9e9dea5d09a2106d9c(
50089
- value: typing.Union[_IResolvable_da3f097b, CfnInferenceComponent.InferenceComponentRuntimeConfigProperty],
50090
- ) -> None:
50091
- """Type checking stubs"""
50092
- pass
50093
-
50094
50099
  def _typecheckingstub__0adfcd5be0b7e042e0a87c6ccfbe4b53fc4803e5b7da8ad8951b7875f1bc187d(
50095
50100
  value: typing.Union[_IResolvable_da3f097b, CfnInferenceComponent.InferenceComponentSpecificationProperty],
50096
50101
  ) -> None:
50097
50102
  """Type checking stubs"""
50098
50103
  pass
50099
50104
 
50100
- def _typecheckingstub__ca03af9ff83216f8a0636af33c0e4a7a2eb600513b2eed7eb75f082151eb70e5(
50101
- value: builtins.str,
50105
+ def _typecheckingstub__6177c630f46f5680f400bfc08061f6f7a9f5f1e1736976ebe24194a8378cbb9c(
50106
+ value: typing.Optional[builtins.str],
50102
50107
  ) -> None:
50103
50108
  """Type checking stubs"""
50104
50109
  pass
50105
50110
 
50106
- def _typecheckingstub__6177c630f46f5680f400bfc08061f6f7a9f5f1e1736976ebe24194a8378cbb9c(
50111
+ def _typecheckingstub__3472a30311d416ad067afa5672326f2c73cf974625b4aa6be0907db35a5a4bac(
50107
50112
  value: typing.Optional[builtins.str],
50108
50113
  ) -> None:
50109
50114
  """Type checking stubs"""
50110
50115
  pass
50111
50116
 
50112
- def _typecheckingstub__3472a30311d416ad067afa5672326f2c73cf974625b4aa6be0907db35a5a4bac(
50113
- value: typing.Optional[builtins.str],
50117
+ def _typecheckingstub__4e7c351a25e5bcfa57adb1a6effe98407a73bd29e017ee9e9dea5d09a2106d9c(
50118
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnInferenceComponent.InferenceComponentRuntimeConfigProperty]],
50114
50119
  ) -> None:
50115
50120
  """Type checking stubs"""
50116
50121
  pass
@@ -50121,6 +50126,12 @@ def _typecheckingstub__01670e9b8687fbb8bb10369a12d0d3b7f4aba931c3ce72496c12f3a81
50121
50126
  """Type checking stubs"""
50122
50127
  pass
50123
50128
 
50129
+ def _typecheckingstub__ca03af9ff83216f8a0636af33c0e4a7a2eb600513b2eed7eb75f082151eb70e5(
50130
+ value: typing.Optional[builtins.str],
50131
+ ) -> None:
50132
+ """Type checking stubs"""
50133
+ pass
50134
+
50124
50135
  def _typecheckingstub__c27834d414a93bc1a61027191b0a24b7e6f65578d28266dfd21a6ed1a5a85ee1(
50125
50136
  *,
50126
50137
  resolution_time: typing.Optional[builtins.str] = None,
@@ -50161,7 +50172,8 @@ def _typecheckingstub__63c5c7c37d4a557d84dc45694cd00ae845f319a810bc817c50db41e7d
50161
50172
 
50162
50173
  def _typecheckingstub__6a0b62210860358f55c428526365b9cb1755209df1a27a1d8b73278ffe9fe251(
50163
50174
  *,
50164
- compute_resource_requirements: typing.Union[_IResolvable_da3f097b, typing.Union[CfnInferenceComponent.InferenceComponentComputeResourceRequirementsProperty, typing.Dict[builtins.str, typing.Any]]],
50175
+ base_inference_component_name: typing.Optional[builtins.str] = None,
50176
+ compute_resource_requirements: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInferenceComponent.InferenceComponentComputeResourceRequirementsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
50165
50177
  container: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInferenceComponent.InferenceComponentContainerSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
50166
50178
  model_name: typing.Optional[builtins.str] = None,
50167
50179
  startup_parameters: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInferenceComponent.InferenceComponentStartupParametersProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -50180,12 +50192,12 @@ def _typecheckingstub__51a3a32a227ed8c98901c9a701372df1d229c6ff59152c6bdae0644d1
50180
50192
  def _typecheckingstub__3926edf39d044760bb8195e9466dfa81ab70056fcc1e3a9053c6c3d90bcaaafa(
50181
50193
  *,
50182
50194
  endpoint_name: builtins.str,
50183
- runtime_config: typing.Union[_IResolvable_da3f097b, typing.Union[CfnInferenceComponent.InferenceComponentRuntimeConfigProperty, typing.Dict[builtins.str, typing.Any]]],
50184
50195
  specification: typing.Union[_IResolvable_da3f097b, typing.Union[CfnInferenceComponent.InferenceComponentSpecificationProperty, typing.Dict[builtins.str, typing.Any]]],
50185
- variant_name: builtins.str,
50186
50196
  endpoint_arn: typing.Optional[builtins.str] = None,
50187
50197
  inference_component_name: typing.Optional[builtins.str] = None,
50198
+ runtime_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInferenceComponent.InferenceComponentRuntimeConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
50188
50199
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
50200
+ variant_name: typing.Optional[builtins.str] = None,
50189
50201
  ) -> None:
50190
50202
  """Type checking stubs"""
50191
50203
  pass