aws-cdk-lib 2.178.2__py3-none-any.whl → 2.180.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 (70) hide show
  1. aws_cdk/__init__.py +83 -41
  2. aws_cdk/_jsii/__init__.py +1 -2
  3. aws_cdk/_jsii/{aws-cdk-lib@2.178.2.jsii.tgz → aws-cdk-lib@2.180.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_acmpca/__init__.py +47 -0
  5. aws_cdk/aws_apigateway/__init__.py +176 -35
  6. aws_cdk/aws_apigatewayv2/__init__.py +151 -32
  7. aws_cdk/aws_apigatewayv2_integrations/__init__.py +348 -0
  8. aws_cdk/aws_applicationautoscaling/__init__.py +8 -8
  9. aws_cdk/aws_appsync/__init__.py +10 -7
  10. aws_cdk/aws_backup/__init__.py +89 -0
  11. aws_cdk/aws_batch/__init__.py +89 -50
  12. aws_cdk/aws_bedrock/__init__.py +506 -62
  13. aws_cdk/aws_cloudfront/__init__.py +1037 -146
  14. aws_cdk/aws_cloudfront_origins/__init__.py +1338 -144
  15. aws_cdk/aws_cloudtrail/__init__.py +4 -8
  16. aws_cdk/aws_cloudwatch/__init__.py +1 -1
  17. aws_cdk/aws_codebuild/__init__.py +218 -2
  18. aws_cdk/aws_codepipeline/__init__.py +113 -28
  19. aws_cdk/aws_codepipeline_actions/__init__.py +554 -63
  20. aws_cdk/aws_codestar/__init__.py +2 -1
  21. aws_cdk/aws_cognito/__init__.py +676 -29
  22. aws_cdk/aws_connect/__init__.py +257 -0
  23. aws_cdk/aws_datasync/__init__.py +279 -50
  24. aws_cdk/aws_deadline/__init__.py +683 -6
  25. aws_cdk/aws_directoryservice/__init__.py +9 -4
  26. aws_cdk/aws_dlm/__init__.py +2 -2
  27. aws_cdk/aws_dms/__init__.py +3 -3
  28. aws_cdk/aws_dynamodb/__init__.py +0 -54
  29. aws_cdk/aws_ec2/__init__.py +402 -130
  30. aws_cdk/aws_ecs/__init__.py +28 -43
  31. aws_cdk/aws_efs/__init__.py +1 -1
  32. aws_cdk/aws_eks/__init__.py +560 -182
  33. aws_cdk/aws_elasticloadbalancingv2/__init__.py +112 -27
  34. aws_cdk/aws_emrcontainers/__init__.py +44 -1
  35. aws_cdk/aws_events/__init__.py +17 -26
  36. aws_cdk/aws_events_targets/__init__.py +303 -16
  37. aws_cdk/aws_fms/__init__.py +5 -5
  38. aws_cdk/aws_fsx/__init__.py +5 -4
  39. aws_cdk/aws_glue/__init__.py +161 -0
  40. aws_cdk/aws_groundstation/__init__.py +23 -1
  41. aws_cdk/aws_iam/__init__.py +15 -15
  42. aws_cdk/aws_iot/__init__.py +7 -0
  43. aws_cdk/aws_ivs/__init__.py +254 -77
  44. aws_cdk/aws_kinesis/__init__.py +689 -35
  45. aws_cdk/aws_lambda/__init__.py +10 -15
  46. aws_cdk/aws_lambda_event_sources/__init__.py +175 -2
  47. aws_cdk/aws_logs/__init__.py +62 -13
  48. aws_cdk/aws_medialive/__init__.py +314 -4
  49. aws_cdk/aws_opensearchserverless/__init__.py +19 -0
  50. aws_cdk/aws_pinpoint/__init__.py +14 -9
  51. aws_cdk/aws_rds/__init__.py +246 -82
  52. aws_cdk/aws_s3/__init__.py +287 -9
  53. aws_cdk/aws_s3objectlambda/__init__.py +2 -2
  54. aws_cdk/aws_ses/__init__.py +228 -8
  55. aws_cdk/aws_ssm/__init__.py +4 -5
  56. aws_cdk/aws_stepfunctions/__init__.py +301 -70
  57. aws_cdk/aws_stepfunctions_tasks/__init__.py +269 -163
  58. aws_cdk/aws_supportapp/__init__.py +7 -7
  59. aws_cdk/aws_transfer/__init__.py +820 -2
  60. aws_cdk/aws_wafv2/__init__.py +17 -9
  61. aws_cdk/custom_resources/__init__.py +23 -26
  62. aws_cdk/cx_api/__init__.py +16 -0
  63. aws_cdk/pipelines/__init__.py +2 -2
  64. {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.180.0.dist-info}/METADATA +1 -2
  65. {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.180.0.dist-info}/RECORD +69 -70
  66. aws_cdk/lambda_layer_kubectl/__init__.py +0 -107
  67. {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.180.0.dist-info}/LICENSE +0 -0
  68. {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.180.0.dist-info}/NOTICE +0 -0
  69. {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.180.0.dist-info}/WHEEL +0 -0
  70. {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.180.0.dist-info}/top_level.txt +0 -0
@@ -1609,7 +1609,7 @@ class CfnAgent(
1609
1609
 
1610
1610
  :param base_prompt_template: Defines the prompt template with which to replace the default prompt template. You can use placeholder variables in the base prompt template to customize the prompt. For more information, see `Prompt template placeholder variables <https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html>`_ . For more information, see `Configure the prompt templates <https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts-configure.html>`_ .
1611
1611
  :param inference_configuration: Contains inference parameters to use when the agent invokes a foundation model in the part of the agent sequence defined by the ``promptType`` . For more information, see `Inference parameters for foundation models <https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html>`_ .
1612
- :param parser_mode: Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the ``promptType`` . If you set the field as ``OVERRIDEN`` , the ``overrideLambda`` field in the `PromptOverrideConfiguration <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html>`_ must be specified with the ARN of a Lambda function.
1612
+ :param parser_mode: Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the ``promptType`` . If you set the field as ``OVERRIDDEN`` , the ``overrideLambda`` field in the `PromptOverrideConfiguration <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html>`_ must be specified with the ARN of a Lambda function.
1613
1613
  :param prompt_creation_mode: Specifies whether to override the default prompt template for this ``promptType`` . Set this value to ``OVERRIDDEN`` to use the prompt that you provide in the ``basePromptTemplate`` . If you leave it as ``DEFAULT`` , the agent uses a default prompt template.
1614
1614
  :param prompt_state: Specifies whether to allow the inline agent to carry out the step specified in the ``promptType`` . If you set this value to ``DISABLED`` , the agent skips that step. The default state for each ``promptType`` is as follows. - ``PRE_PROCESSING`` – ``ENABLED`` - ``ORCHESTRATION`` – ``ENABLED`` - ``KNOWLEDGE_BASE_RESPONSE_GENERATION`` – ``ENABLED`` - ``POST_PROCESSING`` – ``DISABLED``
1615
1615
  :param prompt_type: The step in the agent sequence that this prompt configuration applies to.
@@ -1688,7 +1688,7 @@ class CfnAgent(
1688
1688
  def parser_mode(self) -> typing.Optional[builtins.str]:
1689
1689
  '''Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the ``promptType`` .
1690
1690
 
1691
- If you set the field as ``OVERRIDEN`` , the ``overrideLambda`` field in the `PromptOverrideConfiguration <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html>`_ must be specified with the ARN of a Lambda function.
1691
+ If you set the field as ``OVERRIDDEN`` , the ``overrideLambda`` field in the `PromptOverrideConfiguration <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html>`_ must be specified with the ARN of a Lambda function.
1692
1692
 
1693
1693
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-promptconfiguration.html#cfn-bedrock-agent-promptconfiguration-parsermode
1694
1694
  '''
@@ -2055,6 +2055,7 @@ class CfnAgentAlias(
2055
2055
  - FAILED – The agent alias API operation failed.
2056
2056
  - UPDATING – The agent alias is being updated.
2057
2057
  - DELETING – The agent alias is being deleted.
2058
+ - DISSOCIATED - The agent alias has no version associated with it.
2058
2059
 
2059
2060
  :cloudformationAttribute: AgentAliasStatus
2060
2061
  '''
@@ -3800,9 +3801,9 @@ class CfnDataSource(
3800
3801
  parsing_modality: typing.Optional[builtins.str] = None,
3801
3802
  parsing_prompt: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.ParsingPromptProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
3802
3803
  ) -> None:
3803
- '''Settings for a foundation model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ used to parse documents for a data source.
3804
+ '''Settings for a foundation model used to parse documents for a data source.
3804
3805
 
3805
- :param model_arn: The ARN of the foundation model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ to use for parsing.
3806
+ :param model_arn: The ARN of the foundation model to use for parsing.
3806
3807
  :param parsing_modality: Specifies whether to enable parsing of multimodal data, including both text and/or images.
3807
3808
  :param parsing_prompt: Instructions for interpreting the contents of a document.
3808
3809
 
@@ -3840,7 +3841,7 @@ class CfnDataSource(
3840
3841
 
3841
3842
  @builtins.property
3842
3843
  def model_arn(self) -> builtins.str:
3843
- '''The ARN of the foundation model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ to use for parsing.
3844
+ '''The ARN of the foundation model to use for parsing.
3844
3845
 
3845
3846
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelconfiguration.html#cfn-bedrock-datasource-bedrockfoundationmodelconfiguration-modelarn
3846
3847
  '''
@@ -19949,7 +19950,7 @@ class CfnKnowledgeBase(
19949
19950
  ) -> None:
19950
19951
  '''Contains details about the model used to create vector embeddings for the knowledge base.
19951
19952
 
19952
- :param embedding_model_arn: The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.
19953
+ :param embedding_model_arn: The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.
19953
19954
  :param embedding_model_configuration: The embeddings model configuration details for the vector model used in Knowledge Base.
19954
19955
  :param supplemental_data_storage_configuration: If you include multimodal data from your data source, use this object to specify configurations for the storage location of the images extracted from your documents. These images can be retrieved and returned to the end user. They can also be used in generation when using `RetrieveAndGenerate <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html>`_ .
19955
19956
 
@@ -19999,7 +20000,7 @@ class CfnKnowledgeBase(
19999
20000
 
20000
20001
  @builtins.property
20001
20002
  def embedding_model_arn(self) -> builtins.str:
20002
- '''The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.
20003
+ '''The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.
20003
20004
 
20004
20005
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-vectorknowledgebaseconfiguration-embeddingmodelarn
20005
20006
  '''
@@ -20342,6 +20343,7 @@ class CfnPrompt(
20342
20343
  # The values are placeholders you should change.
20343
20344
  from aws_cdk import aws_bedrock as bedrock
20344
20345
 
20346
+ # additional_model_request_fields: Any
20345
20347
  # any: Any
20346
20348
  # auto: Any
20347
20349
  # json: Any
@@ -20362,6 +20364,9 @@ class CfnPrompt(
20362
20364
  chat=bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty(
20363
20365
  messages=[bedrock.CfnPrompt.MessageProperty(
20364
20366
  content=[bedrock.CfnPrompt.ContentBlockProperty(
20367
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
20368
+ type="type"
20369
+ ),
20365
20370
  text="text"
20366
20371
  )],
20367
20372
  role="role"
@@ -20372,10 +20377,16 @@ class CfnPrompt(
20372
20377
  name="name"
20373
20378
  )],
20374
20379
  system=[bedrock.CfnPrompt.SystemContentBlockProperty(
20380
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
20381
+ type="type"
20382
+ ),
20375
20383
  text="text"
20376
20384
  )],
20377
20385
  tool_configuration=bedrock.CfnPrompt.ToolConfigurationProperty(
20378
20386
  tools=[bedrock.CfnPrompt.ToolProperty(
20387
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
20388
+ type="type"
20389
+ ),
20379
20390
  tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
20380
20391
  input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
20381
20392
  json=json
@@ -20398,6 +20409,9 @@ class CfnPrompt(
20398
20409
  )
20399
20410
  ),
20400
20411
  text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
20412
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
20413
+ type="type"
20414
+ ),
20401
20415
  input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
20402
20416
  name="name"
20403
20417
  )],
@@ -20414,6 +20428,7 @@ class CfnPrompt(
20414
20428
  template_type="templateType",
20415
20429
 
20416
20430
  # the properties below are optional
20431
+ additional_model_request_fields=additional_model_request_fields,
20417
20432
  gen_ai_resource=bedrock.CfnPrompt.PromptGenAiResourceProperty(
20418
20433
  agent=bedrock.CfnPrompt.PromptAgentResourceProperty(
20419
20434
  agent_identifier="agentIdentifier"
@@ -20644,6 +20659,60 @@ class CfnPrompt(
20644
20659
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
20645
20660
  jsii.set(self, "variants", value) # pyright: ignore[reportArgumentType]
20646
20661
 
20662
+ @jsii.data_type(
20663
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.CachePointBlockProperty",
20664
+ jsii_struct_bases=[],
20665
+ name_mapping={"type": "type"},
20666
+ )
20667
+ class CachePointBlockProperty:
20668
+ def __init__(self, *, type: builtins.str) -> None:
20669
+ '''Indicates where a cache checkpoint is located.
20670
+
20671
+ All information before this checkpoint is cached to be accessed on subsequent requests.
20672
+
20673
+ :param type: Indicates that the CachePointBlock is of the default type.
20674
+
20675
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-cachepointblock.html
20676
+ :exampleMetadata: fixture=_generated
20677
+
20678
+ Example::
20679
+
20680
+ # The code below shows an example of how to instantiate this type.
20681
+ # The values are placeholders you should change.
20682
+ from aws_cdk import aws_bedrock as bedrock
20683
+
20684
+ cache_point_block_property = bedrock.CfnPrompt.CachePointBlockProperty(
20685
+ type="type"
20686
+ )
20687
+ '''
20688
+ if __debug__:
20689
+ type_hints = typing.get_type_hints(_typecheckingstub__bd50cf8beba9be3087e745b65b15d91f37347526c9a4f8f4cb158f627e746a25)
20690
+ check_type(argname="argument type", value=type, expected_type=type_hints["type"])
20691
+ self._values: typing.Dict[builtins.str, typing.Any] = {
20692
+ "type": type,
20693
+ }
20694
+
20695
+ @builtins.property
20696
+ def type(self) -> builtins.str:
20697
+ '''Indicates that the CachePointBlock is of the default type.
20698
+
20699
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-cachepointblock.html#cfn-bedrock-prompt-cachepointblock-type
20700
+ '''
20701
+ result = self._values.get("type")
20702
+ assert result is not None, "Required property 'type' is missing"
20703
+ return typing.cast(builtins.str, result)
20704
+
20705
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
20706
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
20707
+
20708
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
20709
+ return not (rhs == self)
20710
+
20711
+ def __repr__(self) -> str:
20712
+ return "CachePointBlockProperty(%s)" % ", ".join(
20713
+ k + "=" + repr(v) for k, v in self._values.items()
20714
+ )
20715
+
20647
20716
  @jsii.data_type(
20648
20717
  jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty",
20649
20718
  jsii_struct_bases=[],
@@ -20688,6 +20757,9 @@ class CfnPrompt(
20688
20757
  chat_prompt_template_configuration_property = bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty(
20689
20758
  messages=[bedrock.CfnPrompt.MessageProperty(
20690
20759
  content=[bedrock.CfnPrompt.ContentBlockProperty(
20760
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
20761
+ type="type"
20762
+ ),
20691
20763
  text="text"
20692
20764
  )],
20693
20765
  role="role"
@@ -20698,10 +20770,16 @@ class CfnPrompt(
20698
20770
  name="name"
20699
20771
  )],
20700
20772
  system=[bedrock.CfnPrompt.SystemContentBlockProperty(
20773
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
20774
+ type="type"
20775
+ ),
20701
20776
  text="text"
20702
20777
  )],
20703
20778
  tool_configuration=bedrock.CfnPrompt.ToolConfigurationProperty(
20704
20779
  tools=[bedrock.CfnPrompt.ToolProperty(
20780
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
20781
+ type="type"
20782
+ ),
20705
20783
  tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
20706
20784
  input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
20707
20785
  json=json
@@ -20799,12 +20877,18 @@ class CfnPrompt(
20799
20877
  @jsii.data_type(
20800
20878
  jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ContentBlockProperty",
20801
20879
  jsii_struct_bases=[],
20802
- name_mapping={"text": "text"},
20880
+ name_mapping={"cache_point": "cachePoint", "text": "text"},
20803
20881
  )
20804
20882
  class ContentBlockProperty:
20805
- def __init__(self, *, text: builtins.str) -> None:
20883
+ def __init__(
20884
+ self,
20885
+ *,
20886
+ cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.CachePointBlockProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
20887
+ text: typing.Optional[builtins.str] = None,
20888
+ ) -> None:
20806
20889
  '''A block of content for a message that you pass to, or receive from, a model with the `Converse <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html>`_ or `ConverseStream <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html>`_ API operations.
20807
20890
 
20891
+ :param cache_point: Creates a cache checkpoint within a message.
20808
20892
  :param text: Text to include in the message.
20809
20893
 
20810
20894
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-contentblock.html
@@ -20817,25 +20901,41 @@ class CfnPrompt(
20817
20901
  from aws_cdk import aws_bedrock as bedrock
20818
20902
 
20819
20903
  content_block_property = bedrock.CfnPrompt.ContentBlockProperty(
20904
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
20905
+ type="type"
20906
+ ),
20820
20907
  text="text"
20821
20908
  )
20822
20909
  '''
20823
20910
  if __debug__:
20824
20911
  type_hints = typing.get_type_hints(_typecheckingstub__2d0cf0f0136b9d804a0809956c82c64b1f75a73d35d6c0fa6f1007666d629ec6)
20912
+ check_type(argname="argument cache_point", value=cache_point, expected_type=type_hints["cache_point"])
20825
20913
  check_type(argname="argument text", value=text, expected_type=type_hints["text"])
20826
- self._values: typing.Dict[builtins.str, typing.Any] = {
20827
- "text": text,
20828
- }
20914
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
20915
+ if cache_point is not None:
20916
+ self._values["cache_point"] = cache_point
20917
+ if text is not None:
20918
+ self._values["text"] = text
20829
20919
 
20830
20920
  @builtins.property
20831
- def text(self) -> builtins.str:
20921
+ def cache_point(
20922
+ self,
20923
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]]:
20924
+ '''Creates a cache checkpoint within a message.
20925
+
20926
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-contentblock.html#cfn-bedrock-prompt-contentblock-cachepoint
20927
+ '''
20928
+ result = self._values.get("cache_point")
20929
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]], result)
20930
+
20931
+ @builtins.property
20932
+ def text(self) -> typing.Optional[builtins.str]:
20832
20933
  '''Text to include in the message.
20833
20934
 
20834
20935
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-contentblock.html#cfn-bedrock-prompt-contentblock-text
20835
20936
  '''
20836
20937
  result = self._values.get("text")
20837
- assert result is not None, "Required property 'text' is missing"
20838
- return typing.cast(builtins.str, result)
20938
+ return typing.cast(typing.Optional[builtins.str], result)
20839
20939
 
20840
20940
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
20841
20941
  return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -20876,6 +20976,9 @@ class CfnPrompt(
20876
20976
 
20877
20977
  message_property = bedrock.CfnPrompt.MessageProperty(
20878
20978
  content=[bedrock.CfnPrompt.ContentBlockProperty(
20979
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
20980
+ type="type"
20981
+ ),
20879
20982
  text="text"
20880
20983
  )],
20881
20984
  role="role"
@@ -21303,6 +21406,9 @@ class CfnPrompt(
21303
21406
  chat=bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty(
21304
21407
  messages=[bedrock.CfnPrompt.MessageProperty(
21305
21408
  content=[bedrock.CfnPrompt.ContentBlockProperty(
21409
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
21410
+ type="type"
21411
+ ),
21306
21412
  text="text"
21307
21413
  )],
21308
21414
  role="role"
@@ -21313,10 +21419,16 @@ class CfnPrompt(
21313
21419
  name="name"
21314
21420
  )],
21315
21421
  system=[bedrock.CfnPrompt.SystemContentBlockProperty(
21422
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
21423
+ type="type"
21424
+ ),
21316
21425
  text="text"
21317
21426
  )],
21318
21427
  tool_configuration=bedrock.CfnPrompt.ToolConfigurationProperty(
21319
21428
  tools=[bedrock.CfnPrompt.ToolProperty(
21429
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
21430
+ type="type"
21431
+ ),
21320
21432
  tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
21321
21433
  input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
21322
21434
  json=json
@@ -21339,6 +21451,9 @@ class CfnPrompt(
21339
21451
  )
21340
21452
  ),
21341
21453
  text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
21454
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
21455
+ type="type"
21456
+ ),
21342
21457
  input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
21343
21458
  name="name"
21344
21459
  )],
@@ -21403,6 +21518,7 @@ class CfnPrompt(
21403
21518
  "name": "name",
21404
21519
  "template_configuration": "templateConfiguration",
21405
21520
  "template_type": "templateType",
21521
+ "additional_model_request_fields": "additionalModelRequestFields",
21406
21522
  "gen_ai_resource": "genAiResource",
21407
21523
  "inference_configuration": "inferenceConfiguration",
21408
21524
  "model_id": "modelId",
@@ -21415,6 +21531,7 @@ class CfnPrompt(
21415
21531
  name: builtins.str,
21416
21532
  template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptTemplateConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
21417
21533
  template_type: builtins.str,
21534
+ additional_model_request_fields: typing.Any = None,
21418
21535
  gen_ai_resource: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptGenAiResourceProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
21419
21536
  inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptInferenceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
21420
21537
  model_id: typing.Optional[builtins.str] = None,
@@ -21424,6 +21541,7 @@ class CfnPrompt(
21424
21541
  :param name: The name of the prompt variant.
21425
21542
  :param template_configuration: Contains configurations for the prompt template.
21426
21543
  :param template_type: The type of prompt template to use.
21544
+ :param additional_model_request_fields: Contains model-specific inference configurations that aren't in the ``inferenceConfiguration`` field. To see model-specific inference parameters, see `Inference request parameters and response fields for foundation models <https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html>`_ .
21427
21545
  :param gen_ai_resource: Specifies a generative AI resource with which to use the prompt.
21428
21546
  :param inference_configuration: Contains inference configurations for the prompt variant.
21429
21547
  :param model_id: The unique identifier of the model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ with which to run inference on the prompt.
@@ -21437,6 +21555,7 @@ class CfnPrompt(
21437
21555
  # The values are placeholders you should change.
21438
21556
  from aws_cdk import aws_bedrock as bedrock
21439
21557
 
21558
+ # additional_model_request_fields: Any
21440
21559
  # any: Any
21441
21560
  # auto: Any
21442
21561
  # json: Any
@@ -21447,6 +21566,9 @@ class CfnPrompt(
21447
21566
  chat=bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty(
21448
21567
  messages=[bedrock.CfnPrompt.MessageProperty(
21449
21568
  content=[bedrock.CfnPrompt.ContentBlockProperty(
21569
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
21570
+ type="type"
21571
+ ),
21450
21572
  text="text"
21451
21573
  )],
21452
21574
  role="role"
@@ -21457,10 +21579,16 @@ class CfnPrompt(
21457
21579
  name="name"
21458
21580
  )],
21459
21581
  system=[bedrock.CfnPrompt.SystemContentBlockProperty(
21582
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
21583
+ type="type"
21584
+ ),
21460
21585
  text="text"
21461
21586
  )],
21462
21587
  tool_configuration=bedrock.CfnPrompt.ToolConfigurationProperty(
21463
21588
  tools=[bedrock.CfnPrompt.ToolProperty(
21589
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
21590
+ type="type"
21591
+ ),
21464
21592
  tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
21465
21593
  input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
21466
21594
  json=json
@@ -21483,6 +21611,9 @@ class CfnPrompt(
21483
21611
  )
21484
21612
  ),
21485
21613
  text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
21614
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
21615
+ type="type"
21616
+ ),
21486
21617
  input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
21487
21618
  name="name"
21488
21619
  )],
@@ -21499,6 +21630,7 @@ class CfnPrompt(
21499
21630
  template_type="templateType",
21500
21631
 
21501
21632
  # the properties below are optional
21633
+ additional_model_request_fields=additional_model_request_fields,
21502
21634
  gen_ai_resource=bedrock.CfnPrompt.PromptGenAiResourceProperty(
21503
21635
  agent=bedrock.CfnPrompt.PromptAgentResourceProperty(
21504
21636
  agent_identifier="agentIdentifier"
@@ -21520,6 +21652,7 @@ class CfnPrompt(
21520
21652
  check_type(argname="argument name", value=name, expected_type=type_hints["name"])
21521
21653
  check_type(argname="argument template_configuration", value=template_configuration, expected_type=type_hints["template_configuration"])
21522
21654
  check_type(argname="argument template_type", value=template_type, expected_type=type_hints["template_type"])
21655
+ check_type(argname="argument additional_model_request_fields", value=additional_model_request_fields, expected_type=type_hints["additional_model_request_fields"])
21523
21656
  check_type(argname="argument gen_ai_resource", value=gen_ai_resource, expected_type=type_hints["gen_ai_resource"])
21524
21657
  check_type(argname="argument inference_configuration", value=inference_configuration, expected_type=type_hints["inference_configuration"])
21525
21658
  check_type(argname="argument model_id", value=model_id, expected_type=type_hints["model_id"])
@@ -21528,6 +21661,8 @@ class CfnPrompt(
21528
21661
  "template_configuration": template_configuration,
21529
21662
  "template_type": template_type,
21530
21663
  }
21664
+ if additional_model_request_fields is not None:
21665
+ self._values["additional_model_request_fields"] = additional_model_request_fields
21531
21666
  if gen_ai_resource is not None:
21532
21667
  self._values["gen_ai_resource"] = gen_ai_resource
21533
21668
  if inference_configuration is not None:
@@ -21567,6 +21702,17 @@ class CfnPrompt(
21567
21702
  assert result is not None, "Required property 'template_type' is missing"
21568
21703
  return typing.cast(builtins.str, result)
21569
21704
 
21705
+ @builtins.property
21706
+ def additional_model_request_fields(self) -> typing.Any:
21707
+ '''Contains model-specific inference configurations that aren't in the ``inferenceConfiguration`` field.
21708
+
21709
+ To see model-specific inference parameters, see `Inference request parameters and response fields for foundation models <https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html>`_ .
21710
+
21711
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html#cfn-bedrock-prompt-promptvariant-additionalmodelrequestfields
21712
+ '''
21713
+ result = self._values.get("additional_model_request_fields")
21714
+ return typing.cast(typing.Any, result)
21715
+
21570
21716
  @builtins.property
21571
21717
  def gen_ai_resource(
21572
21718
  self,
@@ -21669,14 +21815,20 @@ class CfnPrompt(
21669
21815
  @jsii.data_type(
21670
21816
  jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.SystemContentBlockProperty",
21671
21817
  jsii_struct_bases=[],
21672
- name_mapping={"text": "text"},
21818
+ name_mapping={"cache_point": "cachePoint", "text": "text"},
21673
21819
  )
21674
21820
  class SystemContentBlockProperty:
21675
- def __init__(self, *, text: builtins.str) -> None:
21821
+ def __init__(
21822
+ self,
21823
+ *,
21824
+ cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.CachePointBlockProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
21825
+ text: typing.Optional[builtins.str] = None,
21826
+ ) -> None:
21676
21827
  '''Contains configurations for instructions to provide the model for how to handle input.
21677
21828
 
21678
21829
  To learn more, see `Using the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-call.html>`_ .
21679
21830
 
21831
+ :param cache_point: Creates a cache checkpoint within a tool designation.
21680
21832
  :param text: A system prompt for the model.
21681
21833
 
21682
21834
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-systemcontentblock.html
@@ -21689,25 +21841,41 @@ class CfnPrompt(
21689
21841
  from aws_cdk import aws_bedrock as bedrock
21690
21842
 
21691
21843
  system_content_block_property = bedrock.CfnPrompt.SystemContentBlockProperty(
21844
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
21845
+ type="type"
21846
+ ),
21692
21847
  text="text"
21693
21848
  )
21694
21849
  '''
21695
21850
  if __debug__:
21696
21851
  type_hints = typing.get_type_hints(_typecheckingstub__8684cdb8cfe450b629e96665dd0dbfcf0c5a9af74b282632d6f3c9b2aa9f3ba1)
21852
+ check_type(argname="argument cache_point", value=cache_point, expected_type=type_hints["cache_point"])
21697
21853
  check_type(argname="argument text", value=text, expected_type=type_hints["text"])
21698
- self._values: typing.Dict[builtins.str, typing.Any] = {
21699
- "text": text,
21700
- }
21854
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
21855
+ if cache_point is not None:
21856
+ self._values["cache_point"] = cache_point
21857
+ if text is not None:
21858
+ self._values["text"] = text
21701
21859
 
21702
21860
  @builtins.property
21703
- def text(self) -> builtins.str:
21861
+ def cache_point(
21862
+ self,
21863
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]]:
21864
+ '''Creates a cache checkpoint within a tool designation.
21865
+
21866
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-systemcontentblock.html#cfn-bedrock-prompt-systemcontentblock-cachepoint
21867
+ '''
21868
+ result = self._values.get("cache_point")
21869
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]], result)
21870
+
21871
+ @builtins.property
21872
+ def text(self) -> typing.Optional[builtins.str]:
21704
21873
  '''A system prompt for the model.
21705
21874
 
21706
21875
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-systemcontentblock.html#cfn-bedrock-prompt-systemcontentblock-text
21707
21876
  '''
21708
21877
  result = self._values.get("text")
21709
- assert result is not None, "Required property 'text' is missing"
21710
- return typing.cast(builtins.str, result)
21878
+ return typing.cast(typing.Optional[builtins.str], result)
21711
21879
 
21712
21880
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
21713
21881
  return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -21724,6 +21892,7 @@ class CfnPrompt(
21724
21892
  jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty",
21725
21893
  jsii_struct_bases=[],
21726
21894
  name_mapping={
21895
+ "cache_point": "cachePoint",
21727
21896
  "input_variables": "inputVariables",
21728
21897
  "text": "text",
21729
21898
  "text_s3_location": "textS3Location",
@@ -21733,6 +21902,7 @@ class CfnPrompt(
21733
21902
  def __init__(
21734
21903
  self,
21735
21904
  *,
21905
+ cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.CachePointBlockProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
21736
21906
  input_variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptInputVariableProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
21737
21907
  text: typing.Optional[builtins.str] = None,
21738
21908
  text_s3_location: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.TextS3LocationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -21741,6 +21911,7 @@ class CfnPrompt(
21741
21911
 
21742
21912
  To include a variable, enclose a word in double curly braces as in ``{{variable}}`` .
21743
21913
 
21914
+ :param cache_point: A cache checkpoint within a template configuration.
21744
21915
  :param input_variables: An array of the variables in the prompt template.
21745
21916
  :param text: The message for the prompt.
21746
21917
  :param text_s3_location: The Amazon S3 location of the prompt text.
@@ -21755,6 +21926,9 @@ class CfnPrompt(
21755
21926
  from aws_cdk import aws_bedrock as bedrock
21756
21927
 
21757
21928
  text_prompt_template_configuration_property = bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
21929
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
21930
+ type="type"
21931
+ ),
21758
21932
  input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
21759
21933
  name="name"
21760
21934
  )],
@@ -21770,10 +21944,13 @@ class CfnPrompt(
21770
21944
  '''
21771
21945
  if __debug__:
21772
21946
  type_hints = typing.get_type_hints(_typecheckingstub__01b3fa0f925290ea253625fab81f78f897a7a15beed843aec623b58c22593c4c)
21947
+ check_type(argname="argument cache_point", value=cache_point, expected_type=type_hints["cache_point"])
21773
21948
  check_type(argname="argument input_variables", value=input_variables, expected_type=type_hints["input_variables"])
21774
21949
  check_type(argname="argument text", value=text, expected_type=type_hints["text"])
21775
21950
  check_type(argname="argument text_s3_location", value=text_s3_location, expected_type=type_hints["text_s3_location"])
21776
21951
  self._values: typing.Dict[builtins.str, typing.Any] = {}
21952
+ if cache_point is not None:
21953
+ self._values["cache_point"] = cache_point
21777
21954
  if input_variables is not None:
21778
21955
  self._values["input_variables"] = input_variables
21779
21956
  if text is not None:
@@ -21781,6 +21958,17 @@ class CfnPrompt(
21781
21958
  if text_s3_location is not None:
21782
21959
  self._values["text_s3_location"] = text_s3_location
21783
21960
 
21961
+ @builtins.property
21962
+ def cache_point(
21963
+ self,
21964
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]]:
21965
+ '''A cache checkpoint within a template configuration.
21966
+
21967
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-textprompttemplateconfiguration.html#cfn-bedrock-prompt-textprompttemplateconfiguration-cachepoint
21968
+ '''
21969
+ result = self._values.get("cache_point")
21970
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]], result)
21971
+
21784
21972
  @builtins.property
21785
21973
  def input_variables(
21786
21974
  self,
@@ -22043,6 +22231,9 @@ class CfnPrompt(
22043
22231
 
22044
22232
  tool_configuration_property = bedrock.CfnPrompt.ToolConfigurationProperty(
22045
22233
  tools=[bedrock.CfnPrompt.ToolProperty(
22234
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
22235
+ type="type"
22236
+ ),
22046
22237
  tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
22047
22238
  input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
22048
22239
  json=json
@@ -22169,18 +22360,20 @@ class CfnPrompt(
22169
22360
  @jsii.data_type(
22170
22361
  jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ToolProperty",
22171
22362
  jsii_struct_bases=[],
22172
- name_mapping={"tool_spec": "toolSpec"},
22363
+ name_mapping={"cache_point": "cachePoint", "tool_spec": "toolSpec"},
22173
22364
  )
22174
22365
  class ToolProperty:
22175
22366
  def __init__(
22176
22367
  self,
22177
22368
  *,
22178
- tool_spec: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.ToolSpecificationProperty", typing.Dict[builtins.str, typing.Any]]],
22369
+ cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.CachePointBlockProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
22370
+ tool_spec: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.ToolSpecificationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
22179
22371
  ) -> None:
22180
22372
  '''Information about a tool that you can use with the Converse API.
22181
22373
 
22182
22374
  For more information, see `Call a tool with the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html>`_ in the Amazon Bedrock User Guide.
22183
22375
 
22376
+ :param cache_point: Creates a cache checkpoint within a tool designation.
22184
22377
  :param tool_spec: The specfication for the tool.
22185
22378
 
22186
22379
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-tool.html
@@ -22195,6 +22388,9 @@ class CfnPrompt(
22195
22388
  # json: Any
22196
22389
 
22197
22390
  tool_property = bedrock.CfnPrompt.ToolProperty(
22391
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
22392
+ type="type"
22393
+ ),
22198
22394
  tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
22199
22395
  input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
22200
22396
  json=json
@@ -22208,22 +22404,35 @@ class CfnPrompt(
22208
22404
  '''
22209
22405
  if __debug__:
22210
22406
  type_hints = typing.get_type_hints(_typecheckingstub__e0724eccb0497cbb88041bf7ba797dcfaceb20385a8cb461c8adc1b539c869e2)
22407
+ check_type(argname="argument cache_point", value=cache_point, expected_type=type_hints["cache_point"])
22211
22408
  check_type(argname="argument tool_spec", value=tool_spec, expected_type=type_hints["tool_spec"])
22212
- self._values: typing.Dict[builtins.str, typing.Any] = {
22213
- "tool_spec": tool_spec,
22214
- }
22409
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
22410
+ if cache_point is not None:
22411
+ self._values["cache_point"] = cache_point
22412
+ if tool_spec is not None:
22413
+ self._values["tool_spec"] = tool_spec
22414
+
22415
+ @builtins.property
22416
+ def cache_point(
22417
+ self,
22418
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]]:
22419
+ '''Creates a cache checkpoint within a tool designation.
22420
+
22421
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-tool.html#cfn-bedrock-prompt-tool-cachepoint
22422
+ '''
22423
+ result = self._values.get("cache_point")
22424
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]], result)
22215
22425
 
22216
22426
  @builtins.property
22217
22427
  def tool_spec(
22218
22428
  self,
22219
- ) -> typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolSpecificationProperty"]:
22429
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolSpecificationProperty"]]:
22220
22430
  '''The specfication for the tool.
22221
22431
 
22222
22432
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-tool.html#cfn-bedrock-prompt-tool-toolspec
22223
22433
  '''
22224
22434
  result = self._values.get("tool_spec")
22225
- assert result is not None, "Required property 'tool_spec' is missing"
22226
- return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolSpecificationProperty"], result)
22435
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolSpecificationProperty"]], result)
22227
22436
 
22228
22437
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
22229
22438
  return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -22378,6 +22587,7 @@ class CfnPromptProps:
22378
22587
  # The values are placeholders you should change.
22379
22588
  from aws_cdk import aws_bedrock as bedrock
22380
22589
 
22590
+ # additional_model_request_fields: Any
22381
22591
  # any: Any
22382
22592
  # auto: Any
22383
22593
  # json: Any
@@ -22398,6 +22608,9 @@ class CfnPromptProps:
22398
22608
  chat=bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty(
22399
22609
  messages=[bedrock.CfnPrompt.MessageProperty(
22400
22610
  content=[bedrock.CfnPrompt.ContentBlockProperty(
22611
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
22612
+ type="type"
22613
+ ),
22401
22614
  text="text"
22402
22615
  )],
22403
22616
  role="role"
@@ -22408,10 +22621,16 @@ class CfnPromptProps:
22408
22621
  name="name"
22409
22622
  )],
22410
22623
  system=[bedrock.CfnPrompt.SystemContentBlockProperty(
22624
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
22625
+ type="type"
22626
+ ),
22411
22627
  text="text"
22412
22628
  )],
22413
22629
  tool_configuration=bedrock.CfnPrompt.ToolConfigurationProperty(
22414
22630
  tools=[bedrock.CfnPrompt.ToolProperty(
22631
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
22632
+ type="type"
22633
+ ),
22415
22634
  tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
22416
22635
  input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
22417
22636
  json=json
@@ -22434,6 +22653,9 @@ class CfnPromptProps:
22434
22653
  )
22435
22654
  ),
22436
22655
  text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
22656
+ cache_point=bedrock.CfnPrompt.CachePointBlockProperty(
22657
+ type="type"
22658
+ ),
22437
22659
  input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
22438
22660
  name="name"
22439
22661
  )],
@@ -22450,6 +22672,7 @@ class CfnPromptProps:
22450
22672
  template_type="templateType",
22451
22673
 
22452
22674
  # the properties below are optional
22675
+ additional_model_request_fields=additional_model_request_fields,
22453
22676
  gen_ai_resource=bedrock.CfnPrompt.PromptGenAiResourceProperty(
22454
22677
  agent=bedrock.CfnPrompt.PromptAgentResourceProperty(
22455
22678
  agent_identifier="agentIdentifier"
@@ -22786,6 +23009,60 @@ class CfnPromptVersion(
22786
23009
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
22787
23010
  jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
22788
23011
 
23012
+ @jsii.data_type(
23013
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnPromptVersion.CachePointBlockProperty",
23014
+ jsii_struct_bases=[],
23015
+ name_mapping={"type": "type"},
23016
+ )
23017
+ class CachePointBlockProperty:
23018
+ def __init__(self, *, type: builtins.str) -> None:
23019
+ '''Indicates where a cache checkpoint is located.
23020
+
23021
+ All information before this checkpoint is cached to be accessed on subsequent requests.
23022
+
23023
+ :param type: Indicates that the CachePointBlock is of the default type.
23024
+
23025
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-cachepointblock.html
23026
+ :exampleMetadata: fixture=_generated
23027
+
23028
+ Example::
23029
+
23030
+ # The code below shows an example of how to instantiate this type.
23031
+ # The values are placeholders you should change.
23032
+ from aws_cdk import aws_bedrock as bedrock
23033
+
23034
+ cache_point_block_property = bedrock.CfnPromptVersion.CachePointBlockProperty(
23035
+ type="type"
23036
+ )
23037
+ '''
23038
+ if __debug__:
23039
+ type_hints = typing.get_type_hints(_typecheckingstub__1efc63ac0b88e352df8f8c7f3ee2d701335ff357064dab7bcd43198aebfa0c3a)
23040
+ check_type(argname="argument type", value=type, expected_type=type_hints["type"])
23041
+ self._values: typing.Dict[builtins.str, typing.Any] = {
23042
+ "type": type,
23043
+ }
23044
+
23045
+ @builtins.property
23046
+ def type(self) -> builtins.str:
23047
+ '''Indicates that the CachePointBlock is of the default type.
23048
+
23049
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-cachepointblock.html#cfn-bedrock-promptversion-cachepointblock-type
23050
+ '''
23051
+ result = self._values.get("type")
23052
+ assert result is not None, "Required property 'type' is missing"
23053
+ return typing.cast(builtins.str, result)
23054
+
23055
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
23056
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
23057
+
23058
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
23059
+ return not (rhs == self)
23060
+
23061
+ def __repr__(self) -> str:
23062
+ return "CachePointBlockProperty(%s)" % ", ".join(
23063
+ k + "=" + repr(v) for k, v in self._values.items()
23064
+ )
23065
+
22789
23066
  @jsii.data_type(
22790
23067
  jsii_type="aws-cdk-lib.aws_bedrock.CfnPromptVersion.ChatPromptTemplateConfigurationProperty",
22791
23068
  jsii_struct_bases=[],
@@ -22830,6 +23107,9 @@ class CfnPromptVersion(
22830
23107
  chat_prompt_template_configuration_property = bedrock.CfnPromptVersion.ChatPromptTemplateConfigurationProperty(
22831
23108
  messages=[bedrock.CfnPromptVersion.MessageProperty(
22832
23109
  content=[bedrock.CfnPromptVersion.ContentBlockProperty(
23110
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
23111
+ type="type"
23112
+ ),
22833
23113
  text="text"
22834
23114
  )],
22835
23115
  role="role"
@@ -22840,10 +23120,16 @@ class CfnPromptVersion(
22840
23120
  name="name"
22841
23121
  )],
22842
23122
  system=[bedrock.CfnPromptVersion.SystemContentBlockProperty(
23123
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
23124
+ type="type"
23125
+ ),
22843
23126
  text="text"
22844
23127
  )],
22845
23128
  tool_configuration=bedrock.CfnPromptVersion.ToolConfigurationProperty(
22846
23129
  tools=[bedrock.CfnPromptVersion.ToolProperty(
23130
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
23131
+ type="type"
23132
+ ),
22847
23133
  tool_spec=bedrock.CfnPromptVersion.ToolSpecificationProperty(
22848
23134
  input_schema=bedrock.CfnPromptVersion.ToolInputSchemaProperty(
22849
23135
  json=json
@@ -22941,12 +23227,18 @@ class CfnPromptVersion(
22941
23227
  @jsii.data_type(
22942
23228
  jsii_type="aws-cdk-lib.aws_bedrock.CfnPromptVersion.ContentBlockProperty",
22943
23229
  jsii_struct_bases=[],
22944
- name_mapping={"text": "text"},
23230
+ name_mapping={"cache_point": "cachePoint", "text": "text"},
22945
23231
  )
22946
23232
  class ContentBlockProperty:
22947
- def __init__(self, *, text: builtins.str) -> None:
23233
+ def __init__(
23234
+ self,
23235
+ *,
23236
+ cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.CachePointBlockProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
23237
+ text: typing.Optional[builtins.str] = None,
23238
+ ) -> None:
22948
23239
  '''A block of content for a message that you pass to, or receive from, a model with the `Converse <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html>`_ or `ConverseStream <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html>`_ API operations.
22949
23240
 
23241
+ :param cache_point: Creates a cache checkpoint within a message.
22950
23242
  :param text: Text to include in the message.
22951
23243
 
22952
23244
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-contentblock.html
@@ -22959,25 +23251,41 @@ class CfnPromptVersion(
22959
23251
  from aws_cdk import aws_bedrock as bedrock
22960
23252
 
22961
23253
  content_block_property = bedrock.CfnPromptVersion.ContentBlockProperty(
23254
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
23255
+ type="type"
23256
+ ),
22962
23257
  text="text"
22963
23258
  )
22964
23259
  '''
22965
23260
  if __debug__:
22966
23261
  type_hints = typing.get_type_hints(_typecheckingstub__f8b7a5db3e6c4348c44c9b98b76a4988d8fd2d9c411c79a6421043a940b9b3e1)
23262
+ check_type(argname="argument cache_point", value=cache_point, expected_type=type_hints["cache_point"])
22967
23263
  check_type(argname="argument text", value=text, expected_type=type_hints["text"])
22968
- self._values: typing.Dict[builtins.str, typing.Any] = {
22969
- "text": text,
22970
- }
23264
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
23265
+ if cache_point is not None:
23266
+ self._values["cache_point"] = cache_point
23267
+ if text is not None:
23268
+ self._values["text"] = text
22971
23269
 
22972
23270
  @builtins.property
22973
- def text(self) -> builtins.str:
23271
+ def cache_point(
23272
+ self,
23273
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]]:
23274
+ '''Creates a cache checkpoint within a message.
23275
+
23276
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-contentblock.html#cfn-bedrock-promptversion-contentblock-cachepoint
23277
+ '''
23278
+ result = self._values.get("cache_point")
23279
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]], result)
23280
+
23281
+ @builtins.property
23282
+ def text(self) -> typing.Optional[builtins.str]:
22974
23283
  '''Text to include in the message.
22975
23284
 
22976
23285
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-contentblock.html#cfn-bedrock-promptversion-contentblock-text
22977
23286
  '''
22978
23287
  result = self._values.get("text")
22979
- assert result is not None, "Required property 'text' is missing"
22980
- return typing.cast(builtins.str, result)
23288
+ return typing.cast(typing.Optional[builtins.str], result)
22981
23289
 
22982
23290
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
22983
23291
  return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -23018,6 +23326,9 @@ class CfnPromptVersion(
23018
23326
 
23019
23327
  message_property = bedrock.CfnPromptVersion.MessageProperty(
23020
23328
  content=[bedrock.CfnPromptVersion.ContentBlockProperty(
23329
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
23330
+ type="type"
23331
+ ),
23021
23332
  text="text"
23022
23333
  )],
23023
23334
  role="role"
@@ -23445,6 +23756,9 @@ class CfnPromptVersion(
23445
23756
  chat=bedrock.CfnPromptVersion.ChatPromptTemplateConfigurationProperty(
23446
23757
  messages=[bedrock.CfnPromptVersion.MessageProperty(
23447
23758
  content=[bedrock.CfnPromptVersion.ContentBlockProperty(
23759
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
23760
+ type="type"
23761
+ ),
23448
23762
  text="text"
23449
23763
  )],
23450
23764
  role="role"
@@ -23455,10 +23769,16 @@ class CfnPromptVersion(
23455
23769
  name="name"
23456
23770
  )],
23457
23771
  system=[bedrock.CfnPromptVersion.SystemContentBlockProperty(
23772
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
23773
+ type="type"
23774
+ ),
23458
23775
  text="text"
23459
23776
  )],
23460
23777
  tool_configuration=bedrock.CfnPromptVersion.ToolConfigurationProperty(
23461
23778
  tools=[bedrock.CfnPromptVersion.ToolProperty(
23779
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
23780
+ type="type"
23781
+ ),
23462
23782
  tool_spec=bedrock.CfnPromptVersion.ToolSpecificationProperty(
23463
23783
  input_schema=bedrock.CfnPromptVersion.ToolInputSchemaProperty(
23464
23784
  json=json
@@ -23484,6 +23804,9 @@ class CfnPromptVersion(
23484
23804
  text="text",
23485
23805
 
23486
23806
  # the properties below are optional
23807
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
23808
+ type="type"
23809
+ ),
23487
23810
  input_variables=[bedrock.CfnPromptVersion.PromptInputVariableProperty(
23488
23811
  name="name"
23489
23812
  )]
@@ -23540,6 +23863,7 @@ class CfnPromptVersion(
23540
23863
  "name": "name",
23541
23864
  "template_configuration": "templateConfiguration",
23542
23865
  "template_type": "templateType",
23866
+ "additional_model_request_fields": "additionalModelRequestFields",
23543
23867
  "gen_ai_resource": "genAiResource",
23544
23868
  "inference_configuration": "inferenceConfiguration",
23545
23869
  "model_id": "modelId",
@@ -23552,6 +23876,7 @@ class CfnPromptVersion(
23552
23876
  name: builtins.str,
23553
23877
  template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.PromptTemplateConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
23554
23878
  template_type: builtins.str,
23879
+ additional_model_request_fields: typing.Any = None,
23555
23880
  gen_ai_resource: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.PromptGenAiResourceProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
23556
23881
  inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.PromptInferenceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
23557
23882
  model_id: typing.Optional[builtins.str] = None,
@@ -23561,6 +23886,7 @@ class CfnPromptVersion(
23561
23886
  :param name: The name of the prompt variant.
23562
23887
  :param template_configuration: Contains configurations for the prompt template.
23563
23888
  :param template_type: The type of prompt template to use.
23889
+ :param additional_model_request_fields: Contains model-specific inference configurations that aren't in the ``inferenceConfiguration`` field. To see model-specific inference parameters, see `Inference request parameters and response fields for foundation models <https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html>`_ .
23564
23890
  :param gen_ai_resource: Specifies a generative AI resource with which to use the prompt.
23565
23891
  :param inference_configuration: Contains inference configurations for the prompt variant.
23566
23892
  :param model_id: The unique identifier of the model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ with which to run inference on the prompt.
@@ -23574,6 +23900,7 @@ class CfnPromptVersion(
23574
23900
  # The values are placeholders you should change.
23575
23901
  from aws_cdk import aws_bedrock as bedrock
23576
23902
 
23903
+ # additional_model_request_fields: Any
23577
23904
  # any: Any
23578
23905
  # auto: Any
23579
23906
  # json: Any
@@ -23584,6 +23911,9 @@ class CfnPromptVersion(
23584
23911
  chat=bedrock.CfnPromptVersion.ChatPromptTemplateConfigurationProperty(
23585
23912
  messages=[bedrock.CfnPromptVersion.MessageProperty(
23586
23913
  content=[bedrock.CfnPromptVersion.ContentBlockProperty(
23914
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
23915
+ type="type"
23916
+ ),
23587
23917
  text="text"
23588
23918
  )],
23589
23919
  role="role"
@@ -23594,10 +23924,16 @@ class CfnPromptVersion(
23594
23924
  name="name"
23595
23925
  )],
23596
23926
  system=[bedrock.CfnPromptVersion.SystemContentBlockProperty(
23927
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
23928
+ type="type"
23929
+ ),
23597
23930
  text="text"
23598
23931
  )],
23599
23932
  tool_configuration=bedrock.CfnPromptVersion.ToolConfigurationProperty(
23600
23933
  tools=[bedrock.CfnPromptVersion.ToolProperty(
23934
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
23935
+ type="type"
23936
+ ),
23601
23937
  tool_spec=bedrock.CfnPromptVersion.ToolSpecificationProperty(
23602
23938
  input_schema=bedrock.CfnPromptVersion.ToolInputSchemaProperty(
23603
23939
  json=json
@@ -23623,6 +23959,9 @@ class CfnPromptVersion(
23623
23959
  text="text",
23624
23960
 
23625
23961
  # the properties below are optional
23962
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
23963
+ type="type"
23964
+ ),
23626
23965
  input_variables=[bedrock.CfnPromptVersion.PromptInputVariableProperty(
23627
23966
  name="name"
23628
23967
  )]
@@ -23631,6 +23970,7 @@ class CfnPromptVersion(
23631
23970
  template_type="templateType",
23632
23971
 
23633
23972
  # the properties below are optional
23973
+ additional_model_request_fields=additional_model_request_fields,
23634
23974
  gen_ai_resource=bedrock.CfnPromptVersion.PromptGenAiResourceProperty(
23635
23975
  agent=bedrock.CfnPromptVersion.PromptAgentResourceProperty(
23636
23976
  agent_identifier="agentIdentifier"
@@ -23652,6 +23992,7 @@ class CfnPromptVersion(
23652
23992
  check_type(argname="argument name", value=name, expected_type=type_hints["name"])
23653
23993
  check_type(argname="argument template_configuration", value=template_configuration, expected_type=type_hints["template_configuration"])
23654
23994
  check_type(argname="argument template_type", value=template_type, expected_type=type_hints["template_type"])
23995
+ check_type(argname="argument additional_model_request_fields", value=additional_model_request_fields, expected_type=type_hints["additional_model_request_fields"])
23655
23996
  check_type(argname="argument gen_ai_resource", value=gen_ai_resource, expected_type=type_hints["gen_ai_resource"])
23656
23997
  check_type(argname="argument inference_configuration", value=inference_configuration, expected_type=type_hints["inference_configuration"])
23657
23998
  check_type(argname="argument model_id", value=model_id, expected_type=type_hints["model_id"])
@@ -23660,6 +24001,8 @@ class CfnPromptVersion(
23660
24001
  "template_configuration": template_configuration,
23661
24002
  "template_type": template_type,
23662
24003
  }
24004
+ if additional_model_request_fields is not None:
24005
+ self._values["additional_model_request_fields"] = additional_model_request_fields
23663
24006
  if gen_ai_resource is not None:
23664
24007
  self._values["gen_ai_resource"] = gen_ai_resource
23665
24008
  if inference_configuration is not None:
@@ -23699,6 +24042,17 @@ class CfnPromptVersion(
23699
24042
  assert result is not None, "Required property 'template_type' is missing"
23700
24043
  return typing.cast(builtins.str, result)
23701
24044
 
24045
+ @builtins.property
24046
+ def additional_model_request_fields(self) -> typing.Any:
24047
+ '''Contains model-specific inference configurations that aren't in the ``inferenceConfiguration`` field.
24048
+
24049
+ To see model-specific inference parameters, see `Inference request parameters and response fields for foundation models <https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html>`_ .
24050
+
24051
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html#cfn-bedrock-promptversion-promptvariant-additionalmodelrequestfields
24052
+ '''
24053
+ result = self._values.get("additional_model_request_fields")
24054
+ return typing.cast(typing.Any, result)
24055
+
23702
24056
  @builtins.property
23703
24057
  def gen_ai_resource(
23704
24058
  self,
@@ -23801,14 +24155,20 @@ class CfnPromptVersion(
23801
24155
  @jsii.data_type(
23802
24156
  jsii_type="aws-cdk-lib.aws_bedrock.CfnPromptVersion.SystemContentBlockProperty",
23803
24157
  jsii_struct_bases=[],
23804
- name_mapping={"text": "text"},
24158
+ name_mapping={"cache_point": "cachePoint", "text": "text"},
23805
24159
  )
23806
24160
  class SystemContentBlockProperty:
23807
- def __init__(self, *, text: builtins.str) -> None:
24161
+ def __init__(
24162
+ self,
24163
+ *,
24164
+ cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.CachePointBlockProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
24165
+ text: typing.Optional[builtins.str] = None,
24166
+ ) -> None:
23808
24167
  '''Contains configurations for instructions to provide the model for how to handle input.
23809
24168
 
23810
24169
  To learn more, see `Using the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-call.html>`_ .
23811
24170
 
24171
+ :param cache_point: Creates a cache checkpoint within a tool designation.
23812
24172
  :param text: A system prompt for the model.
23813
24173
 
23814
24174
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-systemcontentblock.html
@@ -23821,25 +24181,41 @@ class CfnPromptVersion(
23821
24181
  from aws_cdk import aws_bedrock as bedrock
23822
24182
 
23823
24183
  system_content_block_property = bedrock.CfnPromptVersion.SystemContentBlockProperty(
24184
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
24185
+ type="type"
24186
+ ),
23824
24187
  text="text"
23825
24188
  )
23826
24189
  '''
23827
24190
  if __debug__:
23828
24191
  type_hints = typing.get_type_hints(_typecheckingstub__0cbd3706b5604495a5342dc22f3ccea0eb37b33cc6cc971b09a599ce096d4de6)
24192
+ check_type(argname="argument cache_point", value=cache_point, expected_type=type_hints["cache_point"])
23829
24193
  check_type(argname="argument text", value=text, expected_type=type_hints["text"])
23830
- self._values: typing.Dict[builtins.str, typing.Any] = {
23831
- "text": text,
23832
- }
24194
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
24195
+ if cache_point is not None:
24196
+ self._values["cache_point"] = cache_point
24197
+ if text is not None:
24198
+ self._values["text"] = text
23833
24199
 
23834
24200
  @builtins.property
23835
- def text(self) -> builtins.str:
24201
+ def cache_point(
24202
+ self,
24203
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]]:
24204
+ '''Creates a cache checkpoint within a tool designation.
24205
+
24206
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-systemcontentblock.html#cfn-bedrock-promptversion-systemcontentblock-cachepoint
24207
+ '''
24208
+ result = self._values.get("cache_point")
24209
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]], result)
24210
+
24211
+ @builtins.property
24212
+ def text(self) -> typing.Optional[builtins.str]:
23836
24213
  '''A system prompt for the model.
23837
24214
 
23838
24215
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-systemcontentblock.html#cfn-bedrock-promptversion-systemcontentblock-text
23839
24216
  '''
23840
24217
  result = self._values.get("text")
23841
- assert result is not None, "Required property 'text' is missing"
23842
- return typing.cast(builtins.str, result)
24218
+ return typing.cast(typing.Optional[builtins.str], result)
23843
24219
 
23844
24220
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
23845
24221
  return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -23855,13 +24231,18 @@ class CfnPromptVersion(
23855
24231
  @jsii.data_type(
23856
24232
  jsii_type="aws-cdk-lib.aws_bedrock.CfnPromptVersion.TextPromptTemplateConfigurationProperty",
23857
24233
  jsii_struct_bases=[],
23858
- name_mapping={"text": "text", "input_variables": "inputVariables"},
24234
+ name_mapping={
24235
+ "text": "text",
24236
+ "cache_point": "cachePoint",
24237
+ "input_variables": "inputVariables",
24238
+ },
23859
24239
  )
23860
24240
  class TextPromptTemplateConfigurationProperty:
23861
24241
  def __init__(
23862
24242
  self,
23863
24243
  *,
23864
24244
  text: builtins.str,
24245
+ cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.CachePointBlockProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
23865
24246
  input_variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.PromptInputVariableProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
23866
24247
  ) -> None:
23867
24248
  '''Contains configurations for a text prompt template.
@@ -23869,6 +24250,7 @@ class CfnPromptVersion(
23869
24250
  To include a variable, enclose a word in double curly braces as in ``{{variable}}`` .
23870
24251
 
23871
24252
  :param text: The message for the prompt.
24253
+ :param cache_point: A cache checkpoint within a template configuration.
23872
24254
  :param input_variables: An array of the variables in the prompt template.
23873
24255
 
23874
24256
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-textprompttemplateconfiguration.html
@@ -23884,6 +24266,9 @@ class CfnPromptVersion(
23884
24266
  text="text",
23885
24267
 
23886
24268
  # the properties below are optional
24269
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
24270
+ type="type"
24271
+ ),
23887
24272
  input_variables=[bedrock.CfnPromptVersion.PromptInputVariableProperty(
23888
24273
  name="name"
23889
24274
  )]
@@ -23892,10 +24277,13 @@ class CfnPromptVersion(
23892
24277
  if __debug__:
23893
24278
  type_hints = typing.get_type_hints(_typecheckingstub__25032bb281ef1c5cb331710a698cf25fca6db4c1dafdfd15992d6cc955163d3e)
23894
24279
  check_type(argname="argument text", value=text, expected_type=type_hints["text"])
24280
+ check_type(argname="argument cache_point", value=cache_point, expected_type=type_hints["cache_point"])
23895
24281
  check_type(argname="argument input_variables", value=input_variables, expected_type=type_hints["input_variables"])
23896
24282
  self._values: typing.Dict[builtins.str, typing.Any] = {
23897
24283
  "text": text,
23898
24284
  }
24285
+ if cache_point is not None:
24286
+ self._values["cache_point"] = cache_point
23899
24287
  if input_variables is not None:
23900
24288
  self._values["input_variables"] = input_variables
23901
24289
 
@@ -23909,6 +24297,17 @@ class CfnPromptVersion(
23909
24297
  assert result is not None, "Required property 'text' is missing"
23910
24298
  return typing.cast(builtins.str, result)
23911
24299
 
24300
+ @builtins.property
24301
+ def cache_point(
24302
+ self,
24303
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]]:
24304
+ '''A cache checkpoint within a template configuration.
24305
+
24306
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-textprompttemplateconfiguration.html#cfn-bedrock-promptversion-textprompttemplateconfiguration-cachepoint
24307
+ '''
24308
+ result = self._values.get("cache_point")
24309
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]], result)
24310
+
23912
24311
  @builtins.property
23913
24312
  def input_variables(
23914
24313
  self,
@@ -24063,6 +24462,9 @@ class CfnPromptVersion(
24063
24462
 
24064
24463
  tool_configuration_property = bedrock.CfnPromptVersion.ToolConfigurationProperty(
24065
24464
  tools=[bedrock.CfnPromptVersion.ToolProperty(
24465
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
24466
+ type="type"
24467
+ ),
24066
24468
  tool_spec=bedrock.CfnPromptVersion.ToolSpecificationProperty(
24067
24469
  input_schema=bedrock.CfnPromptVersion.ToolInputSchemaProperty(
24068
24470
  json=json
@@ -24189,18 +24591,20 @@ class CfnPromptVersion(
24189
24591
  @jsii.data_type(
24190
24592
  jsii_type="aws-cdk-lib.aws_bedrock.CfnPromptVersion.ToolProperty",
24191
24593
  jsii_struct_bases=[],
24192
- name_mapping={"tool_spec": "toolSpec"},
24594
+ name_mapping={"cache_point": "cachePoint", "tool_spec": "toolSpec"},
24193
24595
  )
24194
24596
  class ToolProperty:
24195
24597
  def __init__(
24196
24598
  self,
24197
24599
  *,
24198
- tool_spec: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.ToolSpecificationProperty", typing.Dict[builtins.str, typing.Any]]],
24600
+ cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.CachePointBlockProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
24601
+ tool_spec: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.ToolSpecificationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
24199
24602
  ) -> None:
24200
24603
  '''Information about a tool that you can use with the Converse API.
24201
24604
 
24202
24605
  For more information, see `Call a tool with the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html>`_ in the Amazon Bedrock User Guide.
24203
24606
 
24607
+ :param cache_point: Creates a cache checkpoint within a tool designation.
24204
24608
  :param tool_spec: The specfication for the tool.
24205
24609
 
24206
24610
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-tool.html
@@ -24215,6 +24619,9 @@ class CfnPromptVersion(
24215
24619
  # json: Any
24216
24620
 
24217
24621
  tool_property = bedrock.CfnPromptVersion.ToolProperty(
24622
+ cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
24623
+ type="type"
24624
+ ),
24218
24625
  tool_spec=bedrock.CfnPromptVersion.ToolSpecificationProperty(
24219
24626
  input_schema=bedrock.CfnPromptVersion.ToolInputSchemaProperty(
24220
24627
  json=json
@@ -24228,22 +24635,35 @@ class CfnPromptVersion(
24228
24635
  '''
24229
24636
  if __debug__:
24230
24637
  type_hints = typing.get_type_hints(_typecheckingstub__8b6207c58bbfdf4ec7d3d8679ed5bbaaeb484f2568db49a5aa30001495cf7363)
24638
+ check_type(argname="argument cache_point", value=cache_point, expected_type=type_hints["cache_point"])
24231
24639
  check_type(argname="argument tool_spec", value=tool_spec, expected_type=type_hints["tool_spec"])
24232
- self._values: typing.Dict[builtins.str, typing.Any] = {
24233
- "tool_spec": tool_spec,
24234
- }
24640
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
24641
+ if cache_point is not None:
24642
+ self._values["cache_point"] = cache_point
24643
+ if tool_spec is not None:
24644
+ self._values["tool_spec"] = tool_spec
24645
+
24646
+ @builtins.property
24647
+ def cache_point(
24648
+ self,
24649
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]]:
24650
+ '''Creates a cache checkpoint within a tool designation.
24651
+
24652
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-tool.html#cfn-bedrock-promptversion-tool-cachepoint
24653
+ '''
24654
+ result = self._values.get("cache_point")
24655
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]], result)
24235
24656
 
24236
24657
  @builtins.property
24237
24658
  def tool_spec(
24238
24659
  self,
24239
- ) -> typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.ToolSpecificationProperty"]:
24660
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.ToolSpecificationProperty"]]:
24240
24661
  '''The specfication for the tool.
24241
24662
 
24242
24663
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-tool.html#cfn-bedrock-promptversion-tool-toolspec
24243
24664
  '''
24244
24665
  result = self._values.get("tool_spec")
24245
- assert result is not None, "Required property 'tool_spec' is missing"
24246
- return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.ToolSpecificationProperty"], result)
24666
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.ToolSpecificationProperty"]], result)
24247
24667
 
24248
24668
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
24249
24669
  return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -27692,6 +28112,13 @@ def _typecheckingstub__b92123c0073f901a0741c026473098ec639beea3bd80ea47a9b53798e
27692
28112
  """Type checking stubs"""
27693
28113
  pass
27694
28114
 
28115
+ def _typecheckingstub__bd50cf8beba9be3087e745b65b15d91f37347526c9a4f8f4cb158f627e746a25(
28116
+ *,
28117
+ type: builtins.str,
28118
+ ) -> None:
28119
+ """Type checking stubs"""
28120
+ pass
28121
+
27695
28122
  def _typecheckingstub__9c6a58ca5edb4fe7249a2b37babee7b708f1fc92b3adcd4af4c3afa45077ee55(
27696
28123
  *,
27697
28124
  messages: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.MessageProperty, typing.Dict[builtins.str, typing.Any]]]]],
@@ -27704,7 +28131,8 @@ def _typecheckingstub__9c6a58ca5edb4fe7249a2b37babee7b708f1fc92b3adcd4af4c3afa45
27704
28131
 
27705
28132
  def _typecheckingstub__2d0cf0f0136b9d804a0809956c82c64b1f75a73d35d6c0fa6f1007666d629ec6(
27706
28133
  *,
27707
- text: builtins.str,
28134
+ cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.CachePointBlockProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
28135
+ text: typing.Optional[builtins.str] = None,
27708
28136
  ) -> None:
27709
28137
  """Type checking stubs"""
27710
28138
  pass
@@ -27768,6 +28196,7 @@ def _typecheckingstub__84ac4a525676aedbb60bd913121b2941e7f39f8599421758678b789b5
27768
28196
  name: builtins.str,
27769
28197
  template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
27770
28198
  template_type: builtins.str,
28199
+ additional_model_request_fields: typing.Any = None,
27771
28200
  gen_ai_resource: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptGenAiResourceProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
27772
28201
  inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptInferenceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
27773
28202
  model_id: typing.Optional[builtins.str] = None,
@@ -27784,13 +28213,15 @@ def _typecheckingstub__da5ae43b082eab1803451ea8230aaac824b9e7e5692a382e905230195
27784
28213
 
27785
28214
  def _typecheckingstub__8684cdb8cfe450b629e96665dd0dbfcf0c5a9af74b282632d6f3c9b2aa9f3ba1(
27786
28215
  *,
27787
- text: builtins.str,
28216
+ cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.CachePointBlockProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
28217
+ text: typing.Optional[builtins.str] = None,
27788
28218
  ) -> None:
27789
28219
  """Type checking stubs"""
27790
28220
  pass
27791
28221
 
27792
28222
  def _typecheckingstub__01b3fa0f925290ea253625fab81f78f897a7a15beed843aec623b58c22593c4c(
27793
28223
  *,
28224
+ cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.CachePointBlockProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
27794
28225
  input_variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptInputVariableProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
27795
28226
  text: typing.Optional[builtins.str] = None,
27796
28227
  text_s3_location: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.TextS3LocationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -27833,7 +28264,8 @@ def _typecheckingstub__53e39100fca2ebe3fae8a9a713a4d2e8e663f416119f9157301a00b1d
27833
28264
 
27834
28265
  def _typecheckingstub__e0724eccb0497cbb88041bf7ba797dcfaceb20385a8cb461c8adc1b539c869e2(
27835
28266
  *,
27836
- tool_spec: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ToolSpecificationProperty, typing.Dict[builtins.str, typing.Any]]],
28267
+ cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.CachePointBlockProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
28268
+ tool_spec: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ToolSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
27837
28269
  ) -> None:
27838
28270
  """Type checking stubs"""
27839
28271
  pass
@@ -27900,6 +28332,13 @@ def _typecheckingstub__9272c7a9663761c48d9f2dd784a0dea11f8f35dbce40fb938036091fd
27900
28332
  """Type checking stubs"""
27901
28333
  pass
27902
28334
 
28335
+ def _typecheckingstub__1efc63ac0b88e352df8f8c7f3ee2d701335ff357064dab7bcd43198aebfa0c3a(
28336
+ *,
28337
+ type: builtins.str,
28338
+ ) -> None:
28339
+ """Type checking stubs"""
28340
+ pass
28341
+
27903
28342
  def _typecheckingstub__598634099b1e295d31ca9013374ac58062095f42b7ddeccfe1c1eeab2c6590ee(
27904
28343
  *,
27905
28344
  messages: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.MessageProperty, typing.Dict[builtins.str, typing.Any]]]]],
@@ -27912,7 +28351,8 @@ def _typecheckingstub__598634099b1e295d31ca9013374ac58062095f42b7ddeccfe1c1eeab2
27912
28351
 
27913
28352
  def _typecheckingstub__f8b7a5db3e6c4348c44c9b98b76a4988d8fd2d9c411c79a6421043a940b9b3e1(
27914
28353
  *,
27915
- text: builtins.str,
28354
+ cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.CachePointBlockProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
28355
+ text: typing.Optional[builtins.str] = None,
27916
28356
  ) -> None:
27917
28357
  """Type checking stubs"""
27918
28358
  pass
@@ -27976,6 +28416,7 @@ def _typecheckingstub__0527e63017fac779f764e66c7e3ec7544382203f5ff233de501b3fde2
27976
28416
  name: builtins.str,
27977
28417
  template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.PromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
27978
28418
  template_type: builtins.str,
28419
+ additional_model_request_fields: typing.Any = None,
27979
28420
  gen_ai_resource: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.PromptGenAiResourceProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
27980
28421
  inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.PromptInferenceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
27981
28422
  model_id: typing.Optional[builtins.str] = None,
@@ -27992,7 +28433,8 @@ def _typecheckingstub__9ab09ecd79f1a36a0ca4b3c53ba8d42ff8f7753a9642c89c5716e547d
27992
28433
 
27993
28434
  def _typecheckingstub__0cbd3706b5604495a5342dc22f3ccea0eb37b33cc6cc971b09a599ce096d4de6(
27994
28435
  *,
27995
- text: builtins.str,
28436
+ cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.CachePointBlockProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
28437
+ text: typing.Optional[builtins.str] = None,
27996
28438
  ) -> None:
27997
28439
  """Type checking stubs"""
27998
28440
  pass
@@ -28000,6 +28442,7 @@ def _typecheckingstub__0cbd3706b5604495a5342dc22f3ccea0eb37b33cc6cc971b09a599ce0
28000
28442
  def _typecheckingstub__25032bb281ef1c5cb331710a698cf25fca6db4c1dafdfd15992d6cc955163d3e(
28001
28443
  *,
28002
28444
  text: builtins.str,
28445
+ cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.CachePointBlockProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
28003
28446
  input_variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.PromptInputVariableProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
28004
28447
  ) -> None:
28005
28448
  """Type checking stubs"""
@@ -28031,7 +28474,8 @@ def _typecheckingstub__1bd602bca74b84c152830a7bedeeeb62692ddadbf74d1de154e81bbfa
28031
28474
 
28032
28475
  def _typecheckingstub__8b6207c58bbfdf4ec7d3d8679ed5bbaaeb484f2568db49a5aa30001495cf7363(
28033
28476
  *,
28034
- tool_spec: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.ToolSpecificationProperty, typing.Dict[builtins.str, typing.Any]]],
28477
+ cache_point: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.CachePointBlockProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
28478
+ tool_spec: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.ToolSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
28035
28479
  ) -> None:
28036
28480
  """Type checking stubs"""
28037
28481
  pass