aws-cdk-lib 2.205.0__py3-none-any.whl → 2.207.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 (30) hide show
  1. aws_cdk/__init__.py +96 -15
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.205.0.jsii.tgz → aws-cdk-lib@2.207.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_aiops/__init__.py +66 -76
  5. aws_cdk/aws_autoscaling/__init__.py +20 -0
  6. aws_cdk/aws_bedrock/__init__.py +126 -70
  7. aws_cdk/aws_certificatemanager/__init__.py +3 -3
  8. aws_cdk/aws_cleanrooms/__init__.py +6 -2
  9. aws_cdk/aws_cloudformation/__init__.py +28 -15
  10. aws_cdk/aws_cloudwatch/__init__.py +574 -33
  11. aws_cdk/aws_datasync/__init__.py +14 -15
  12. aws_cdk/aws_ec2/__init__.py +6 -2
  13. aws_cdk/aws_ecs/__init__.py +773 -212
  14. aws_cdk/aws_iotsitewise/__init__.py +13 -9
  15. aws_cdk/aws_kms/__init__.py +19 -17
  16. aws_cdk/aws_logs/__init__.py +4725 -763
  17. aws_cdk/aws_mediapackagev2/__init__.py +69 -48
  18. aws_cdk/aws_opsworkscm/__init__.py +2 -4
  19. aws_cdk/aws_rds/__init__.py +150 -17
  20. aws_cdk/aws_s3/__init__.py +9 -6
  21. aws_cdk/aws_sagemaker/__init__.py +3 -3
  22. aws_cdk/aws_ssm/__init__.py +58 -33
  23. aws_cdk/aws_transfer/__init__.py +21 -11
  24. aws_cdk/custom_resources/__init__.py +32 -4
  25. {aws_cdk_lib-2.205.0.dist-info → aws_cdk_lib-2.207.0.dist-info}/METADATA +1 -1
  26. {aws_cdk_lib-2.205.0.dist-info → aws_cdk_lib-2.207.0.dist-info}/RECORD +30 -30
  27. {aws_cdk_lib-2.205.0.dist-info → aws_cdk_lib-2.207.0.dist-info}/LICENSE +0 -0
  28. {aws_cdk_lib-2.205.0.dist-info → aws_cdk_lib-2.207.0.dist-info}/NOTICE +0 -0
  29. {aws_cdk_lib-2.205.0.dist-info → aws_cdk_lib-2.207.0.dist-info}/WHEEL +0 -0
  30. {aws_cdk_lib-2.205.0.dist-info → aws_cdk_lib-2.207.0.dist-info}/top_level.txt +0 -0
@@ -4765,7 +4765,7 @@ class CfnGateway(
4765
4765
  :param gateway_name: A unique name for the gateway.
4766
4766
  :param gateway_platform: The gateway's platform. You can only specify one platform in a gateway.
4767
4767
  :param gateway_capability_summaries: A list of gateway capability summaries that each contain a namespace and status. Each gateway capability defines data sources for the gateway. To retrieve a capability configuration's definition, use `DescribeGatewayCapabilityConfiguration <https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeGatewayCapabilityConfiguration.html>`_ .
4768
- :param gateway_version: The version of the gateway. A value of ``3`` indicates an MQTT-enabled, V3 gateway, while ``2`` indicates a Classic streams, V2 gateway.
4768
+ :param gateway_version: The version of the gateway you want to create.
4769
4769
  :param tags: A list of key-value pairs that contain metadata for the gateway. For more information, see `Tagging your AWS IoT SiteWise resources <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html>`_ in the *AWS IoT SiteWise User Guide* .
4770
4770
  '''
4771
4771
  if __debug__:
@@ -4884,7 +4884,7 @@ class CfnGateway(
4884
4884
  @builtins.property
4885
4885
  @jsii.member(jsii_name="gatewayVersion")
4886
4886
  def gateway_version(self) -> typing.Optional[builtins.str]:
4887
- '''The version of the gateway.'''
4887
+ '''The version of the gateway you want to create.'''
4888
4888
  return typing.cast(typing.Optional[builtins.str], jsii.get(self, "gatewayVersion"))
4889
4889
 
4890
4890
  @gateway_version.setter
@@ -4924,7 +4924,7 @@ class CfnGateway(
4924
4924
  ) -> None:
4925
4925
  '''Contains a summary of a gateway capability configuration.
4926
4926
 
4927
- :param capability_namespace: The namespace of the capability configuration. For example, if you configure OPC-UA sources from the AWS IoT SiteWise console, your OPC-UA capability configuration has the namespace ``iotsitewise:opcuacollector:version`` , where ``version`` is a number such as ``1`` .
4927
+ :param capability_namespace: The namespace of the capability configuration. For example, if you configure OPC UA sources for an MQTT-enabled gateway, your OPC-UA capability configuration has the namespace ``iotsitewise:opcuacollector:3`` .
4928
4928
  :param capability_configuration: The JSON document that defines the configuration for the gateway capability. For more information, see `Configuring data sources (CLI) <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/configure-sources.html#configure-source-cli>`_ in the *AWS IoT SiteWise User Guide* .
4929
4929
 
4930
4930
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-gateway-gatewaycapabilitysummary.html
@@ -4957,7 +4957,7 @@ class CfnGateway(
4957
4957
  def capability_namespace(self) -> builtins.str:
4958
4958
  '''The namespace of the capability configuration.
4959
4959
 
4960
- For example, if you configure OPC-UA sources from the AWS IoT SiteWise console, your OPC-UA capability configuration has the namespace ``iotsitewise:opcuacollector:version`` , where ``version`` is a number such as ``1`` .
4960
+ For example, if you configure OPC UA sources for an MQTT-enabled gateway, your OPC-UA capability configuration has the namespace ``iotsitewise:opcuacollector:3`` .
4961
4961
 
4962
4962
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-gateway-gatewaycapabilitysummary.html#cfn-iotsitewise-gateway-gatewaycapabilitysummary-capabilitynamespace
4963
4963
  '''
@@ -5004,7 +5004,13 @@ class CfnGateway(
5004
5004
  greengrass_v2: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGateway.GreengrassV2Property", typing.Dict[builtins.str, typing.Any]]]] = None,
5005
5005
  siemens_ie: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGateway.SiemensIEProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
5006
5006
  ) -> None:
5007
- '''Contains a gateway's platform information.
5007
+ '''The gateway's platform configuration. You can only specify one platform type in a gateway.
5008
+
5009
+ (Legacy only) For Greengrass V1 gateways, specify the ``greengrass`` parameter with a valid Greengrass group ARN.
5010
+
5011
+ For Greengrass V2 gateways, specify the ``greengrassV2`` parameter with a valid core device thing name. If creating a V3 gateway ( ``gatewayVersion=3`` ), you must also specify the ``coreDeviceOperatingSystem`` .
5012
+
5013
+ For Siemens Industrial Edge gateways, specify the ``siemensIE`` parameter with a valid IoT Core thing name.
5008
5014
 
5009
5015
  :param greengrass:
5010
5016
  :param greengrass_v2: A gateway that runs on AWS IoT Greengrass V2 .
@@ -5297,7 +5303,7 @@ class CfnGatewayProps:
5297
5303
  :param gateway_name: A unique name for the gateway.
5298
5304
  :param gateway_platform: The gateway's platform. You can only specify one platform in a gateway.
5299
5305
  :param gateway_capability_summaries: A list of gateway capability summaries that each contain a namespace and status. Each gateway capability defines data sources for the gateway. To retrieve a capability configuration's definition, use `DescribeGatewayCapabilityConfiguration <https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeGatewayCapabilityConfiguration.html>`_ .
5300
- :param gateway_version: The version of the gateway. A value of ``3`` indicates an MQTT-enabled, V3 gateway, while ``2`` indicates a Classic streams, V2 gateway.
5306
+ :param gateway_version: The version of the gateway you want to create.
5301
5307
  :param tags: A list of key-value pairs that contain metadata for the gateway. For more information, see `Tagging your AWS IoT SiteWise resources <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html>`_ in the *AWS IoT SiteWise User Guide* .
5302
5308
 
5303
5309
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-gateway.html
@@ -5397,9 +5403,7 @@ class CfnGatewayProps:
5397
5403
 
5398
5404
  @builtins.property
5399
5405
  def gateway_version(self) -> typing.Optional[builtins.str]:
5400
- '''The version of the gateway.
5401
-
5402
- A value of ``3`` indicates an MQTT-enabled, V3 gateway, while ``2`` indicates a Classic streams, V2 gateway.
5406
+ '''The version of the gateway you want to create.
5403
5407
 
5404
5408
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-gateway.html#cfn-iotsitewise-gateway-gatewayversion
5405
5409
  '''
@@ -2751,29 +2751,31 @@ class KeyProps:
2751
2751
  :param removal_policy: Whether the encryption key should be retained when it is removed from the Stack. This is useful when one wants to retain access to data that was encrypted with a key that is being retired. Default: RemovalPolicy.Retain
2752
2752
  :param rotation_period: The period between each automatic rotation. Default: - set by CFN to 365 days.
2753
2753
 
2754
- :exampleMetadata: infused
2754
+ :exampleMetadata: fixture=default infused
2755
2755
 
2756
2756
  Example::
2757
2757
 
2758
- import aws_cdk.aws_kms as kms
2759
-
2758
+ cmk = kms.Key(self, "cmk")
2759
+ claude_model = bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_SONNET_V1_0
2760
2760
 
2761
- source_output = codepipeline.Artifact()
2762
- target_bucket = s3.Bucket(self, "MyBucket")
2763
- key = kms.Key(self, "EnvVarEncryptKey",
2764
- description="sample key"
2761
+ variant1 = bedrock.PromptVariant.text(
2762
+ variant_name="variant1",
2763
+ model=claude_model,
2764
+ prompt_variables=["topic"],
2765
+ prompt_text="This is my first text prompt. Please summarize our conversation on: {{topic}}.",
2766
+ inference_configuration=bedrock.PromptInferenceConfiguration.text(
2767
+ temperature=1,
2768
+ top_p=0.999,
2769
+ max_tokens=2000
2770
+ )
2765
2771
  )
2766
2772
 
2767
- pipeline = codepipeline.Pipeline(self, "MyPipeline")
2768
- deploy_action = codepipeline_actions.S3DeployAction(
2769
- action_name="S3Deploy",
2770
- bucket=target_bucket,
2771
- input=source_output,
2772
- encryption_key=key
2773
- )
2774
- deploy_stage = pipeline.add_stage(
2775
- stage_name="Deploy",
2776
- actions=[deploy_action]
2773
+ prompt1 = bedrock.Prompt(self, "prompt1",
2774
+ prompt_name="prompt1",
2775
+ description="my first prompt",
2776
+ default_variant=variant1,
2777
+ variants=[variant1],
2778
+ kms_key=cmk
2777
2779
  )
2778
2780
  '''
2779
2781
  if __debug__: