aws-cdk-lib 2.185.0__py3-none-any.whl → 2.186.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 (49) hide show
  1. aws_cdk/__init__.py +102 -29
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.185.0.jsii.tgz → aws-cdk-lib@2.186.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amazonmq/__init__.py +3 -2
  5. aws_cdk/aws_apigatewayv2/__init__.py +9 -0
  6. aws_cdk/aws_appconfig/__init__.py +3 -3
  7. aws_cdk/aws_applicationsignals/__init__.py +363 -3
  8. aws_cdk/aws_appsync/__init__.py +65 -3
  9. aws_cdk/aws_bedrock/__init__.py +385 -14
  10. aws_cdk/aws_cleanrooms/__init__.py +21 -9
  11. aws_cdk/aws_cloudformation/__init__.py +1 -5
  12. aws_cdk/aws_cloudfront/__init__.py +4 -1
  13. aws_cdk/aws_cloudfront_origins/__init__.py +4 -2
  14. aws_cdk/aws_codeartifact/__init__.py +20 -33
  15. aws_cdk/aws_codepipeline/__init__.py +1328 -120
  16. aws_cdk/aws_cognito/__init__.py +1 -1
  17. aws_cdk/aws_cognito_identitypool/__init__.py +2303 -0
  18. aws_cdk/aws_connect/__init__.py +3 -7
  19. aws_cdk/aws_controltower/__init__.py +18 -26
  20. aws_cdk/aws_datazone/__init__.py +3471 -2
  21. aws_cdk/aws_ec2/__init__.py +560 -25
  22. aws_cdk/aws_ecs/__init__.py +15 -20
  23. aws_cdk/aws_events/__init__.py +37 -14
  24. aws_cdk/aws_gamelift/__init__.py +5 -5
  25. aws_cdk/aws_iam/__init__.py +264 -0
  26. aws_cdk/aws_imagebuilder/__init__.py +3 -27
  27. aws_cdk/aws_kinesisfirehose/__init__.py +2 -3
  28. aws_cdk/aws_lambda/__init__.py +7 -1
  29. aws_cdk/aws_location/__init__.py +24 -7
  30. aws_cdk/aws_msk/__init__.py +8 -2
  31. aws_cdk/aws_networkfirewall/__init__.py +16 -12
  32. aws_cdk/aws_oam/__init__.py +8 -37
  33. aws_cdk/aws_quicksight/__init__.py +6 -69
  34. aws_cdk/aws_redshiftserverless/__init__.py +192 -15
  35. aws_cdk/aws_rum/__init__.py +315 -52
  36. aws_cdk/aws_scheduler/__init__.py +3944 -121
  37. aws_cdk/aws_scheduler_targets/__init__.py +4472 -0
  38. aws_cdk/aws_ssmquicksetup/__init__.py +5 -3
  39. aws_cdk/aws_stepfunctions/__init__.py +17 -15
  40. aws_cdk/aws_timestream/__init__.py +4 -4
  41. aws_cdk/aws_wafv2/__init__.py +345 -0
  42. aws_cdk/aws_workspacesthinclient/__init__.py +4 -4
  43. aws_cdk/cx_api/__init__.py +23 -0
  44. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.186.0.dist-info}/METADATA +1 -1
  45. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.186.0.dist-info}/RECORD +49 -47
  46. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.186.0.dist-info}/LICENSE +0 -0
  47. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.186.0.dist-info}/NOTICE +0 -0
  48. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.186.0.dist-info}/WHEEL +0 -0
  49. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.186.0.dist-info}/top_level.txt +0 -0
@@ -7128,7 +7128,13 @@ class CfnDataSource(
7128
7128
  metaclass=jsii.JSIIMeta,
7129
7129
  jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource",
7130
7130
  ):
7131
- '''Specifies a data source as a resource in a top-level template. Minimally, you must specify the following properties:.
7131
+ '''.. epigraph::
7132
+
7133
+ Properties with ``__Update requires: Replacement__`` can result in the creation of a new data source and deletion of the old one.
7134
+
7135
+ This can happen if you also change the Name of the data source.
7136
+
7137
+ Specifies a data source as a resource in a top-level template. Minimally, you must specify the following properties:
7132
7138
 
7133
7139
  - Name – Specify a name for the data source.
7134
7140
  - KnowledgeBaseId – Specify the ID of the knowledge base for the data source to belong to.
@@ -7254,11 +7260,14 @@ class CfnDataSource(
7254
7260
  # the properties below are optional
7255
7261
  crawler_configuration=bedrock.CfnDataSource.WebCrawlerConfigurationProperty(
7256
7262
  crawler_limits=bedrock.CfnDataSource.WebCrawlerLimitsProperty(
7263
+ max_pages=123,
7257
7264
  rate_limit=123
7258
7265
  ),
7259
7266
  exclusion_filters=["exclusionFilters"],
7260
7267
  inclusion_filters=["inclusionFilters"],
7261
- scope="scope"
7268
+ scope="scope",
7269
+ user_agent="userAgent",
7270
+ user_agent_header="userAgentHeader"
7262
7271
  )
7263
7272
  )
7264
7273
  ),
@@ -7292,6 +7301,17 @@ class CfnDataSource(
7292
7301
  max_tokens=123
7293
7302
  )
7294
7303
  ),
7304
+ context_enrichment_configuration=bedrock.CfnDataSource.ContextEnrichmentConfigurationProperty(
7305
+ type="type",
7306
+
7307
+ # the properties below are optional
7308
+ bedrock_foundation_model_configuration=bedrock.CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty(
7309
+ enrichment_strategy_configuration=bedrock.CfnDataSource.EnrichmentStrategyConfigurationProperty(
7310
+ method="method"
7311
+ ),
7312
+ model_arn="modelArn"
7313
+ )
7314
+ ),
7295
7315
  custom_transformation_configuration=bedrock.CfnDataSource.CustomTransformationConfigurationProperty(
7296
7316
  intermediate_storage=bedrock.CfnDataSource.IntermediateStorageProperty(
7297
7317
  s3_location=bedrock.CfnDataSource.S3LocationProperty(
@@ -7407,6 +7427,17 @@ class CfnDataSource(
7407
7427
  '''
7408
7428
  return typing.cast(builtins.str, jsii.get(self, "attrCreatedAt"))
7409
7429
 
7430
+ @builtins.property
7431
+ @jsii.member(jsii_name="attrDataSourceConfigurationWebConfigurationCrawlerConfigurationUserAgentHeader")
7432
+ def attr_data_source_configuration_web_configuration_crawler_configuration_user_agent_header(
7433
+ self,
7434
+ ) -> builtins.str:
7435
+ '''The full user agent header, including UUID and suffix.
7436
+
7437
+ :cloudformationAttribute: DataSourceConfiguration.WebConfiguration.CrawlerConfiguration.UserAgentHeader
7438
+ '''
7439
+ return typing.cast(builtins.str, jsii.get(self, "attrDataSourceConfigurationWebConfigurationCrawlerConfigurationUserAgentHeader"))
7440
+
7410
7441
  @builtins.property
7411
7442
  @jsii.member(jsii_name="attrDataSourceId")
7412
7443
  def attr_data_source_id(self) -> builtins.str:
@@ -7708,6 +7739,84 @@ class CfnDataSource(
7708
7739
  k + "=" + repr(v) for k, v in self._values.items()
7709
7740
  )
7710
7741
 
7742
+ @jsii.data_type(
7743
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty",
7744
+ jsii_struct_bases=[],
7745
+ name_mapping={
7746
+ "enrichment_strategy_configuration": "enrichmentStrategyConfiguration",
7747
+ "model_arn": "modelArn",
7748
+ },
7749
+ )
7750
+ class BedrockFoundationModelContextEnrichmentConfigurationProperty:
7751
+ def __init__(
7752
+ self,
7753
+ *,
7754
+ enrichment_strategy_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.EnrichmentStrategyConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
7755
+ model_arn: builtins.str,
7756
+ ) -> None:
7757
+ '''Bedrock Foundation Model configuration to be used for Context Enrichment.
7758
+
7759
+ :param enrichment_strategy_configuration: Strategy to be used when using Bedrock Foundation Model for Context Enrichment.
7760
+ :param model_arn: The model's ARN.
7761
+
7762
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelcontextenrichmentconfiguration.html
7763
+ :exampleMetadata: fixture=_generated
7764
+
7765
+ Example::
7766
+
7767
+ # The code below shows an example of how to instantiate this type.
7768
+ # The values are placeholders you should change.
7769
+ from aws_cdk import aws_bedrock as bedrock
7770
+
7771
+ bedrock_foundation_model_context_enrichment_configuration_property = bedrock.CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty(
7772
+ enrichment_strategy_configuration=bedrock.CfnDataSource.EnrichmentStrategyConfigurationProperty(
7773
+ method="method"
7774
+ ),
7775
+ model_arn="modelArn"
7776
+ )
7777
+ '''
7778
+ if __debug__:
7779
+ type_hints = typing.get_type_hints(_typecheckingstub__5a89b4cf2c8acc5a8649678b03650df048cec78aecf83c8401430c76e7d47bc5)
7780
+ check_type(argname="argument enrichment_strategy_configuration", value=enrichment_strategy_configuration, expected_type=type_hints["enrichment_strategy_configuration"])
7781
+ check_type(argname="argument model_arn", value=model_arn, expected_type=type_hints["model_arn"])
7782
+ self._values: typing.Dict[builtins.str, typing.Any] = {
7783
+ "enrichment_strategy_configuration": enrichment_strategy_configuration,
7784
+ "model_arn": model_arn,
7785
+ }
7786
+
7787
+ @builtins.property
7788
+ def enrichment_strategy_configuration(
7789
+ self,
7790
+ ) -> typing.Union[_IResolvable_da3f097b, "CfnDataSource.EnrichmentStrategyConfigurationProperty"]:
7791
+ '''Strategy to be used when using Bedrock Foundation Model for Context Enrichment.
7792
+
7793
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelcontextenrichmentconfiguration.html#cfn-bedrock-datasource-bedrockfoundationmodelcontextenrichmentconfiguration-enrichmentstrategyconfiguration
7794
+ '''
7795
+ result = self._values.get("enrichment_strategy_configuration")
7796
+ assert result is not None, "Required property 'enrichment_strategy_configuration' is missing"
7797
+ return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnDataSource.EnrichmentStrategyConfigurationProperty"], result)
7798
+
7799
+ @builtins.property
7800
+ def model_arn(self) -> builtins.str:
7801
+ '''The model's ARN.
7802
+
7803
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelcontextenrichmentconfiguration.html#cfn-bedrock-datasource-bedrockfoundationmodelcontextenrichmentconfiguration-modelarn
7804
+ '''
7805
+ result = self._values.get("model_arn")
7806
+ assert result is not None, "Required property 'model_arn' is missing"
7807
+ return typing.cast(builtins.str, result)
7808
+
7809
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
7810
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
7811
+
7812
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
7813
+ return not (rhs == self)
7814
+
7815
+ def __repr__(self) -> str:
7816
+ return "BedrockFoundationModelContextEnrichmentConfigurationProperty(%s)" % ", ".join(
7817
+ k + "=" + repr(v) for k, v in self._values.items()
7818
+ )
7819
+
7711
7820
  @jsii.data_type(
7712
7821
  jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource.ChunkingConfigurationProperty",
7713
7822
  jsii_struct_bases=[],
@@ -8133,6 +8242,89 @@ class CfnDataSource(
8133
8242
  k + "=" + repr(v) for k, v in self._values.items()
8134
8243
  )
8135
8244
 
8245
+ @jsii.data_type(
8246
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource.ContextEnrichmentConfigurationProperty",
8247
+ jsii_struct_bases=[],
8248
+ name_mapping={
8249
+ "type": "type",
8250
+ "bedrock_foundation_model_configuration": "bedrockFoundationModelConfiguration",
8251
+ },
8252
+ )
8253
+ class ContextEnrichmentConfigurationProperty:
8254
+ def __init__(
8255
+ self,
8256
+ *,
8257
+ type: builtins.str,
8258
+ bedrock_foundation_model_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
8259
+ ) -> None:
8260
+ '''Additional Enrichment Configuration for example when using GraphRag.
8261
+
8262
+ :param type: Enrichment type to be used for the vector database.
8263
+ :param bedrock_foundation_model_configuration: Bedrock Foundation Model configuration to be used for Context Enrichment.
8264
+
8265
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-contextenrichmentconfiguration.html
8266
+ :exampleMetadata: fixture=_generated
8267
+
8268
+ Example::
8269
+
8270
+ # The code below shows an example of how to instantiate this type.
8271
+ # The values are placeholders you should change.
8272
+ from aws_cdk import aws_bedrock as bedrock
8273
+
8274
+ context_enrichment_configuration_property = bedrock.CfnDataSource.ContextEnrichmentConfigurationProperty(
8275
+ type="type",
8276
+
8277
+ # the properties below are optional
8278
+ bedrock_foundation_model_configuration=bedrock.CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty(
8279
+ enrichment_strategy_configuration=bedrock.CfnDataSource.EnrichmentStrategyConfigurationProperty(
8280
+ method="method"
8281
+ ),
8282
+ model_arn="modelArn"
8283
+ )
8284
+ )
8285
+ '''
8286
+ if __debug__:
8287
+ type_hints = typing.get_type_hints(_typecheckingstub__4a8bedb8c03e6599f8bee498faf320fa0afe2ebb758107fb96251adfe3f9031f)
8288
+ check_type(argname="argument type", value=type, expected_type=type_hints["type"])
8289
+ check_type(argname="argument bedrock_foundation_model_configuration", value=bedrock_foundation_model_configuration, expected_type=type_hints["bedrock_foundation_model_configuration"])
8290
+ self._values: typing.Dict[builtins.str, typing.Any] = {
8291
+ "type": type,
8292
+ }
8293
+ if bedrock_foundation_model_configuration is not None:
8294
+ self._values["bedrock_foundation_model_configuration"] = bedrock_foundation_model_configuration
8295
+
8296
+ @builtins.property
8297
+ def type(self) -> builtins.str:
8298
+ '''Enrichment type to be used for the vector database.
8299
+
8300
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-contextenrichmentconfiguration.html#cfn-bedrock-datasource-contextenrichmentconfiguration-type
8301
+ '''
8302
+ result = self._values.get("type")
8303
+ assert result is not None, "Required property 'type' is missing"
8304
+ return typing.cast(builtins.str, result)
8305
+
8306
+ @builtins.property
8307
+ def bedrock_foundation_model_configuration(
8308
+ self,
8309
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty"]]:
8310
+ '''Bedrock Foundation Model configuration to be used for Context Enrichment.
8311
+
8312
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-contextenrichmentconfiguration.html#cfn-bedrock-datasource-contextenrichmentconfiguration-bedrockfoundationmodelconfiguration
8313
+ '''
8314
+ result = self._values.get("bedrock_foundation_model_configuration")
8315
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty"]], result)
8316
+
8317
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
8318
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
8319
+
8320
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
8321
+ return not (rhs == self)
8322
+
8323
+ def __repr__(self) -> str:
8324
+ return "ContextEnrichmentConfigurationProperty(%s)" % ", ".join(
8325
+ k + "=" + repr(v) for k, v in self._values.items()
8326
+ )
8327
+
8136
8328
  @jsii.data_type(
8137
8329
  jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource.CrawlFilterConfigurationProperty",
8138
8330
  jsii_struct_bases=[],
@@ -8458,11 +8650,14 @@ class CfnDataSource(
8458
8650
  # the properties below are optional
8459
8651
  crawler_configuration=bedrock.CfnDataSource.WebCrawlerConfigurationProperty(
8460
8652
  crawler_limits=bedrock.CfnDataSource.WebCrawlerLimitsProperty(
8653
+ max_pages=123,
8461
8654
  rate_limit=123
8462
8655
  ),
8463
8656
  exclusion_filters=["exclusionFilters"],
8464
8657
  inclusion_filters=["inclusionFilters"],
8465
- scope="scope"
8658
+ scope="scope",
8659
+ user_agent="userAgent",
8660
+ user_agent_header="userAgentHeader"
8466
8661
  )
8467
8662
  )
8468
8663
  )
@@ -8581,6 +8776,58 @@ class CfnDataSource(
8581
8776
  k + "=" + repr(v) for k, v in self._values.items()
8582
8777
  )
8583
8778
 
8779
+ @jsii.data_type(
8780
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource.EnrichmentStrategyConfigurationProperty",
8781
+ jsii_struct_bases=[],
8782
+ name_mapping={"method": "method"},
8783
+ )
8784
+ class EnrichmentStrategyConfigurationProperty:
8785
+ def __init__(self, *, method: builtins.str) -> None:
8786
+ '''Strategy to be used when using Bedrock Foundation Model for Context Enrichment.
8787
+
8788
+ :param method: Enrichment Strategy method.
8789
+
8790
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-enrichmentstrategyconfiguration.html
8791
+ :exampleMetadata: fixture=_generated
8792
+
8793
+ Example::
8794
+
8795
+ # The code below shows an example of how to instantiate this type.
8796
+ # The values are placeholders you should change.
8797
+ from aws_cdk import aws_bedrock as bedrock
8798
+
8799
+ enrichment_strategy_configuration_property = bedrock.CfnDataSource.EnrichmentStrategyConfigurationProperty(
8800
+ method="method"
8801
+ )
8802
+ '''
8803
+ if __debug__:
8804
+ type_hints = typing.get_type_hints(_typecheckingstub__644d76f9050da2eaff32542043cca01ff61629f76ef2e0191725886223a5f368)
8805
+ check_type(argname="argument method", value=method, expected_type=type_hints["method"])
8806
+ self._values: typing.Dict[builtins.str, typing.Any] = {
8807
+ "method": method,
8808
+ }
8809
+
8810
+ @builtins.property
8811
+ def method(self) -> builtins.str:
8812
+ '''Enrichment Strategy method.
8813
+
8814
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-enrichmentstrategyconfiguration.html#cfn-bedrock-datasource-enrichmentstrategyconfiguration-method
8815
+ '''
8816
+ result = self._values.get("method")
8817
+ assert result is not None, "Required property 'method' is missing"
8818
+ return typing.cast(builtins.str, result)
8819
+
8820
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
8821
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
8822
+
8823
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
8824
+ return not (rhs == self)
8825
+
8826
+ def __repr__(self) -> str:
8827
+ return "EnrichmentStrategyConfigurationProperty(%s)" % ", ".join(
8828
+ k + "=" + repr(v) for k, v in self._values.items()
8829
+ )
8830
+
8584
8831
  @jsii.data_type(
8585
8832
  jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty",
8586
8833
  jsii_struct_bases=[],
@@ -10381,6 +10628,7 @@ class CfnDataSource(
10381
10628
  jsii_struct_bases=[],
10382
10629
  name_mapping={
10383
10630
  "chunking_configuration": "chunkingConfiguration",
10631
+ "context_enrichment_configuration": "contextEnrichmentConfiguration",
10384
10632
  "custom_transformation_configuration": "customTransformationConfiguration",
10385
10633
  "parsing_configuration": "parsingConfiguration",
10386
10634
  },
@@ -10390,12 +10638,14 @@ class CfnDataSource(
10390
10638
  self,
10391
10639
  *,
10392
10640
  chunking_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.ChunkingConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
10641
+ context_enrichment_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.ContextEnrichmentConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
10393
10642
  custom_transformation_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.CustomTransformationConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
10394
10643
  parsing_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.ParsingConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
10395
10644
  ) -> None:
10396
10645
  '''Contains details about how to ingest the documents in a data source.
10397
10646
 
10398
10647
  :param chunking_configuration: Details about how to chunk the documents in the data source. A *chunk* refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.
10648
+ :param context_enrichment_configuration: Additional Enrichment Configuration for example when using GraphRag.
10399
10649
  :param custom_transformation_configuration: A custom document transformer for parsed data source documents.
10400
10650
  :param parsing_configuration: Configurations for a parser to use for parsing documents in your data source. If you exclude this field, the default parser will be used.
10401
10651
 
@@ -10429,6 +10679,17 @@ class CfnDataSource(
10429
10679
  max_tokens=123
10430
10680
  )
10431
10681
  ),
10682
+ context_enrichment_configuration=bedrock.CfnDataSource.ContextEnrichmentConfigurationProperty(
10683
+ type="type",
10684
+
10685
+ # the properties below are optional
10686
+ bedrock_foundation_model_configuration=bedrock.CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty(
10687
+ enrichment_strategy_configuration=bedrock.CfnDataSource.EnrichmentStrategyConfigurationProperty(
10688
+ method="method"
10689
+ ),
10690
+ model_arn="modelArn"
10691
+ )
10692
+ ),
10432
10693
  custom_transformation_configuration=bedrock.CfnDataSource.CustomTransformationConfigurationProperty(
10433
10694
  intermediate_storage=bedrock.CfnDataSource.IntermediateStorageProperty(
10434
10695
  s3_location=bedrock.CfnDataSource.S3LocationProperty(
@@ -10466,11 +10727,14 @@ class CfnDataSource(
10466
10727
  if __debug__:
10467
10728
  type_hints = typing.get_type_hints(_typecheckingstub__37255db3e7cacfdeadc2d28bfe7938fd13ab4a2cd72190024a531eddf1fd9ec0)
10468
10729
  check_type(argname="argument chunking_configuration", value=chunking_configuration, expected_type=type_hints["chunking_configuration"])
10730
+ check_type(argname="argument context_enrichment_configuration", value=context_enrichment_configuration, expected_type=type_hints["context_enrichment_configuration"])
10469
10731
  check_type(argname="argument custom_transformation_configuration", value=custom_transformation_configuration, expected_type=type_hints["custom_transformation_configuration"])
10470
10732
  check_type(argname="argument parsing_configuration", value=parsing_configuration, expected_type=type_hints["parsing_configuration"])
10471
10733
  self._values: typing.Dict[builtins.str, typing.Any] = {}
10472
10734
  if chunking_configuration is not None:
10473
10735
  self._values["chunking_configuration"] = chunking_configuration
10736
+ if context_enrichment_configuration is not None:
10737
+ self._values["context_enrichment_configuration"] = context_enrichment_configuration
10474
10738
  if custom_transformation_configuration is not None:
10475
10739
  self._values["custom_transformation_configuration"] = custom_transformation_configuration
10476
10740
  if parsing_configuration is not None:
@@ -10489,6 +10753,17 @@ class CfnDataSource(
10489
10753
  result = self._values.get("chunking_configuration")
10490
10754
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataSource.ChunkingConfigurationProperty"]], result)
10491
10755
 
10756
+ @builtins.property
10757
+ def context_enrichment_configuration(
10758
+ self,
10759
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataSource.ContextEnrichmentConfigurationProperty"]]:
10760
+ '''Additional Enrichment Configuration for example when using GraphRag.
10761
+
10762
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-vectoringestionconfiguration.html#cfn-bedrock-datasource-vectoringestionconfiguration-contextenrichmentconfiguration
10763
+ '''
10764
+ result = self._values.get("context_enrichment_configuration")
10765
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataSource.ContextEnrichmentConfigurationProperty"]], result)
10766
+
10492
10767
  @builtins.property
10493
10768
  def custom_transformation_configuration(
10494
10769
  self,
@@ -10532,6 +10807,8 @@ class CfnDataSource(
10532
10807
  "exclusion_filters": "exclusionFilters",
10533
10808
  "inclusion_filters": "inclusionFilters",
10534
10809
  "scope": "scope",
10810
+ "user_agent": "userAgent",
10811
+ "user_agent_header": "userAgentHeader",
10535
10812
  },
10536
10813
  )
10537
10814
  class WebCrawlerConfigurationProperty:
@@ -10542,6 +10819,8 @@ class CfnDataSource(
10542
10819
  exclusion_filters: typing.Optional[typing.Sequence[builtins.str]] = None,
10543
10820
  inclusion_filters: typing.Optional[typing.Sequence[builtins.str]] = None,
10544
10821
  scope: typing.Optional[builtins.str] = None,
10822
+ user_agent: typing.Optional[builtins.str] = None,
10823
+ user_agent_header: typing.Optional[builtins.str] = None,
10545
10824
  ) -> None:
10546
10825
  '''The configuration of web URLs that you want to crawl.
10547
10826
 
@@ -10551,6 +10830,8 @@ class CfnDataSource(
10551
10830
  :param exclusion_filters: A list of one or more exclusion regular expression patterns to exclude certain URLs. If you specify an inclusion and exclusion filter/pattern and both match a URL, the exclusion filter takes precedence and the web content of the URL isn’t crawled.
10552
10831
  :param inclusion_filters: A list of one or more inclusion regular expression patterns to include certain URLs. If you specify an inclusion and exclusion filter/pattern and both match a URL, the exclusion filter takes precedence and the web content of the URL isn’t crawled.
10553
10832
  :param scope: The scope of what is crawled for your URLs. You can choose to crawl only web pages that belong to the same host or primary domain. For example, only web pages that contain the seed URL "https://docs.aws.amazon.com/bedrock/latest/userguide/" and no other domains. You can choose to include sub domains in addition to the host or primary domain. For example, web pages that contain "aws.amazon.com" can also include sub domain "docs.aws.amazon.com".
10833
+ :param user_agent: The suffix that will be included in the user agent header.
10834
+ :param user_agent_header: The full user agent header, including UUID and suffix.
10554
10835
 
10555
10836
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html
10556
10837
  :exampleMetadata: fixture=_generated
@@ -10563,11 +10844,14 @@ class CfnDataSource(
10563
10844
 
10564
10845
  web_crawler_configuration_property = bedrock.CfnDataSource.WebCrawlerConfigurationProperty(
10565
10846
  crawler_limits=bedrock.CfnDataSource.WebCrawlerLimitsProperty(
10847
+ max_pages=123,
10566
10848
  rate_limit=123
10567
10849
  ),
10568
10850
  exclusion_filters=["exclusionFilters"],
10569
10851
  inclusion_filters=["inclusionFilters"],
10570
- scope="scope"
10852
+ scope="scope",
10853
+ user_agent="userAgent",
10854
+ user_agent_header="userAgentHeader"
10571
10855
  )
10572
10856
  '''
10573
10857
  if __debug__:
@@ -10576,6 +10860,8 @@ class CfnDataSource(
10576
10860
  check_type(argname="argument exclusion_filters", value=exclusion_filters, expected_type=type_hints["exclusion_filters"])
10577
10861
  check_type(argname="argument inclusion_filters", value=inclusion_filters, expected_type=type_hints["inclusion_filters"])
10578
10862
  check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
10863
+ check_type(argname="argument user_agent", value=user_agent, expected_type=type_hints["user_agent"])
10864
+ check_type(argname="argument user_agent_header", value=user_agent_header, expected_type=type_hints["user_agent_header"])
10579
10865
  self._values: typing.Dict[builtins.str, typing.Any] = {}
10580
10866
  if crawler_limits is not None:
10581
10867
  self._values["crawler_limits"] = crawler_limits
@@ -10585,6 +10871,10 @@ class CfnDataSource(
10585
10871
  self._values["inclusion_filters"] = inclusion_filters
10586
10872
  if scope is not None:
10587
10873
  self._values["scope"] = scope
10874
+ if user_agent is not None:
10875
+ self._values["user_agent"] = user_agent
10876
+ if user_agent_header is not None:
10877
+ self._values["user_agent_header"] = user_agent_header
10588
10878
 
10589
10879
  @builtins.property
10590
10880
  def crawler_limits(
@@ -10630,6 +10920,24 @@ class CfnDataSource(
10630
10920
  result = self._values.get("scope")
10631
10921
  return typing.cast(typing.Optional[builtins.str], result)
10632
10922
 
10923
+ @builtins.property
10924
+ def user_agent(self) -> typing.Optional[builtins.str]:
10925
+ '''The suffix that will be included in the user agent header.
10926
+
10927
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-useragent
10928
+ '''
10929
+ result = self._values.get("user_agent")
10930
+ return typing.cast(typing.Optional[builtins.str], result)
10931
+
10932
+ @builtins.property
10933
+ def user_agent_header(self) -> typing.Optional[builtins.str]:
10934
+ '''The full user agent header, including UUID and suffix.
10935
+
10936
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-useragentheader
10937
+ '''
10938
+ result = self._values.get("user_agent_header")
10939
+ return typing.cast(typing.Optional[builtins.str], result)
10940
+
10633
10941
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
10634
10942
  return isinstance(rhs, self.__class__) and rhs._values == self._values
10635
10943
 
@@ -10644,14 +10952,20 @@ class CfnDataSource(
10644
10952
  @jsii.data_type(
10645
10953
  jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource.WebCrawlerLimitsProperty",
10646
10954
  jsii_struct_bases=[],
10647
- name_mapping={"rate_limit": "rateLimit"},
10955
+ name_mapping={"max_pages": "maxPages", "rate_limit": "rateLimit"},
10648
10956
  )
10649
10957
  class WebCrawlerLimitsProperty:
10650
- def __init__(self, *, rate_limit: typing.Optional[jsii.Number] = None) -> None:
10958
+ def __init__(
10959
+ self,
10960
+ *,
10961
+ max_pages: typing.Optional[jsii.Number] = None,
10962
+ rate_limit: typing.Optional[jsii.Number] = None,
10963
+ ) -> None:
10651
10964
  '''The rate limits for the URLs that you want to crawl.
10652
10965
 
10653
10966
  You should be authorized to crawl the URLs.
10654
10967
 
10968
+ :param max_pages: Maximum number of pages the crawler can crawl.
10655
10969
  :param rate_limit: The max rate at which pages are crawled, up to 300 per minute per host.
10656
10970
 
10657
10971
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerlimits.html
@@ -10664,16 +10978,29 @@ class CfnDataSource(
10664
10978
  from aws_cdk import aws_bedrock as bedrock
10665
10979
 
10666
10980
  web_crawler_limits_property = bedrock.CfnDataSource.WebCrawlerLimitsProperty(
10981
+ max_pages=123,
10667
10982
  rate_limit=123
10668
10983
  )
10669
10984
  '''
10670
10985
  if __debug__:
10671
10986
  type_hints = typing.get_type_hints(_typecheckingstub__e3c7708618964f317da86f69cc51ebbcf99d7ff170204876d29a3e67fdbefcf9)
10987
+ check_type(argname="argument max_pages", value=max_pages, expected_type=type_hints["max_pages"])
10672
10988
  check_type(argname="argument rate_limit", value=rate_limit, expected_type=type_hints["rate_limit"])
10673
10989
  self._values: typing.Dict[builtins.str, typing.Any] = {}
10990
+ if max_pages is not None:
10991
+ self._values["max_pages"] = max_pages
10674
10992
  if rate_limit is not None:
10675
10993
  self._values["rate_limit"] = rate_limit
10676
10994
 
10995
+ @builtins.property
10996
+ def max_pages(self) -> typing.Optional[jsii.Number]:
10997
+ '''Maximum number of pages the crawler can crawl.
10998
+
10999
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerlimits.html#cfn-bedrock-datasource-webcrawlerlimits-maxpages
11000
+ '''
11001
+ result = self._values.get("max_pages")
11002
+ return typing.cast(typing.Optional[jsii.Number], result)
11003
+
10677
11004
  @builtins.property
10678
11005
  def rate_limit(self) -> typing.Optional[jsii.Number]:
10679
11006
  '''The max rate at which pages are crawled, up to 300 per minute per host.
@@ -10735,11 +11062,14 @@ class CfnDataSource(
10735
11062
  # the properties below are optional
10736
11063
  crawler_configuration=bedrock.CfnDataSource.WebCrawlerConfigurationProperty(
10737
11064
  crawler_limits=bedrock.CfnDataSource.WebCrawlerLimitsProperty(
11065
+ max_pages=123,
10738
11066
  rate_limit=123
10739
11067
  ),
10740
11068
  exclusion_filters=["exclusionFilters"],
10741
11069
  inclusion_filters=["inclusionFilters"],
10742
- scope="scope"
11070
+ scope="scope",
11071
+ user_agent="userAgent",
11072
+ user_agent_header="userAgentHeader"
10743
11073
  )
10744
11074
  )
10745
11075
  '''
@@ -11001,11 +11331,14 @@ class CfnDataSourceProps:
11001
11331
  # the properties below are optional
11002
11332
  crawler_configuration=bedrock.CfnDataSource.WebCrawlerConfigurationProperty(
11003
11333
  crawler_limits=bedrock.CfnDataSource.WebCrawlerLimitsProperty(
11334
+ max_pages=123,
11004
11335
  rate_limit=123
11005
11336
  ),
11006
11337
  exclusion_filters=["exclusionFilters"],
11007
11338
  inclusion_filters=["inclusionFilters"],
11008
- scope="scope"
11339
+ scope="scope",
11340
+ user_agent="userAgent",
11341
+ user_agent_header="userAgentHeader"
11009
11342
  )
11010
11343
  )
11011
11344
  ),
@@ -11039,6 +11372,17 @@ class CfnDataSourceProps:
11039
11372
  max_tokens=123
11040
11373
  )
11041
11374
  ),
11375
+ context_enrichment_configuration=bedrock.CfnDataSource.ContextEnrichmentConfigurationProperty(
11376
+ type="type",
11377
+
11378
+ # the properties below are optional
11379
+ bedrock_foundation_model_configuration=bedrock.CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty(
11380
+ enrichment_strategy_configuration=bedrock.CfnDataSource.EnrichmentStrategyConfigurationProperty(
11381
+ method="method"
11382
+ ),
11383
+ model_arn="modelArn"
11384
+ )
11385
+ ),
11042
11386
  custom_transformation_configuration=bedrock.CfnDataSource.CustomTransformationConfigurationProperty(
11043
11387
  intermediate_storage=bedrock.CfnDataSource.IntermediateStorageProperty(
11044
11388
  s3_location=bedrock.CfnDataSource.S3LocationProperty(
@@ -25688,7 +26032,7 @@ class CfnPrompt(
25688
26032
  For example, ``{"tool" : {"name" : "Your tool name"}}`` . 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
25689
26033
  .. epigraph::
25690
26034
 
25691
- This field is only supported by Anthropic Claude 3 models.
26035
+ This field is only supported by Amazon Nova models and Anthropic Claude 3 models.
25692
26036
 
25693
26037
  :param name: The name of the tool that the model must request.
25694
26038
 
@@ -26039,7 +26383,7 @@ class CfnPrompt(
26039
26383
 
26040
26384
  :param any: The model must request at least one tool (no text is generated).
26041
26385
  :param auto: (Default). The Model automatically decides if a tool should be called or whether to generate text instead.
26042
- :param tool: The Model must request the specified tool. Only supported by Anthropic Claude 3 models.
26386
+ :param tool: The Model must request the specified tool. Only supported by Amazon Nova models and Anthropic Claude 3 models.
26043
26387
 
26044
26388
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html
26045
26389
  :exampleMetadata: fixture=_generated
@@ -26100,7 +26444,7 @@ class CfnPrompt(
26100
26444
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.SpecificToolChoiceProperty"]]:
26101
26445
  '''The Model must request the specified tool.
26102
26446
 
26103
- Only supported by Anthropic Claude 3 models.
26447
+ Only supported by Amazon Nova models and Anthropic Claude 3 models.
26104
26448
 
26105
26449
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html#cfn-bedrock-prompt-toolchoice-tool
26106
26450
  '''
@@ -28121,7 +28465,7 @@ class CfnPromptVersion(
28121
28465
  For example, ``{"tool" : {"name" : "Your tool name"}}`` . 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
28122
28466
  .. epigraph::
28123
28467
 
28124
- This field is only supported by Anthropic Claude 3 models.
28468
+ This field is only supported by Amazon Nova models and Anthropic Claude 3 models.
28125
28469
 
28126
28470
  :param name: The name of the tool that the model must request.
28127
28471
 
@@ -28363,7 +28707,7 @@ class CfnPromptVersion(
28363
28707
 
28364
28708
  :param any: The model must request at least one tool (no text is generated).
28365
28709
  :param auto: (Default). The Model automatically decides if a tool should be called or whether to generate text instead.
28366
- :param tool: The Model must request the specified tool. Only supported by Anthropic Claude 3 models.
28710
+ :param tool: The Model must request the specified tool. Only supported by Amazon Nova models and Anthropic Claude 3 models.
28367
28711
 
28368
28712
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-toolchoice.html
28369
28713
  :exampleMetadata: fixture=_generated
@@ -28424,7 +28768,7 @@ class CfnPromptVersion(
28424
28768
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.SpecificToolChoiceProperty"]]:
28425
28769
  '''The Model must request the specified tool.
28426
28770
 
28427
- Only supported by Anthropic Claude 3 models.
28771
+ Only supported by Amazon Nova models and Anthropic Claude 3 models.
28428
28772
 
28429
28773
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-toolchoice.html#cfn-bedrock-promptversion-toolchoice-tool
28430
28774
  '''
@@ -30921,6 +31265,14 @@ def _typecheckingstub__1988b824c4171f598d30cf03abdb56bc617fd654dd3daf3e641d11499
30921
31265
  """Type checking stubs"""
30922
31266
  pass
30923
31267
 
31268
+ def _typecheckingstub__5a89b4cf2c8acc5a8649678b03650df048cec78aecf83c8401430c76e7d47bc5(
31269
+ *,
31270
+ enrichment_strategy_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.EnrichmentStrategyConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
31271
+ model_arn: builtins.str,
31272
+ ) -> None:
31273
+ """Type checking stubs"""
31274
+ pass
31275
+
30924
31276
  def _typecheckingstub__8beec747a0f57f641fd4bd3b03f73b678c8e286785d948f80998682f0c0a40e5(
30925
31277
  *,
30926
31278
  chunking_strategy: builtins.str,
@@ -30956,6 +31308,14 @@ def _typecheckingstub__f6b1b77774988ec57c830fc9a0a2a7c4c9f4497cdb86ab6c5fa2ebbb1
30956
31308
  """Type checking stubs"""
30957
31309
  pass
30958
31310
 
31311
+ def _typecheckingstub__4a8bedb8c03e6599f8bee498faf320fa0afe2ebb758107fb96251adfe3f9031f(
31312
+ *,
31313
+ type: builtins.str,
31314
+ bedrock_foundation_model_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
31315
+ ) -> None:
31316
+ """Type checking stubs"""
31317
+ pass
31318
+
30959
31319
  def _typecheckingstub__df771f43b4edc46788782c796b78e1b33220d226fe90547899ccc3c75ce15ac8(
30960
31320
  *,
30961
31321
  type: builtins.str,
@@ -30984,6 +31344,13 @@ def _typecheckingstub__a2e1b0c807d6904904c91cc13a2f47ee5db24090758446e26a864b57b
30984
31344
  """Type checking stubs"""
30985
31345
  pass
30986
31346
 
31347
+ def _typecheckingstub__644d76f9050da2eaff32542043cca01ff61629f76ef2e0191725886223a5f368(
31348
+ *,
31349
+ method: builtins.str,
31350
+ ) -> None:
31351
+ """Type checking stubs"""
31352
+ pass
31353
+
30987
31354
  def _typecheckingstub__7b9e8054cbf79d2292e738f1061947914954b89440b15bf572c87c9695aaf7bc(
30988
31355
  *,
30989
31356
  max_tokens: jsii.Number,
@@ -31168,6 +31535,7 @@ def _typecheckingstub__33e4e6226e3e29b9d96cc7d5d58f6d2d4062908e865a2e74a0c3a6b36
31168
31535
  def _typecheckingstub__37255db3e7cacfdeadc2d28bfe7938fd13ab4a2cd72190024a531eddf1fd9ec0(
31169
31536
  *,
31170
31537
  chunking_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.ChunkingConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
31538
+ context_enrichment_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.ContextEnrichmentConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
31171
31539
  custom_transformation_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.CustomTransformationConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
31172
31540
  parsing_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.ParsingConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
31173
31541
  ) -> None:
@@ -31180,12 +31548,15 @@ def _typecheckingstub__19f2bf049e2cc7c767a94b404cf6594346506f3a78f18601159a383fa
31180
31548
  exclusion_filters: typing.Optional[typing.Sequence[builtins.str]] = None,
31181
31549
  inclusion_filters: typing.Optional[typing.Sequence[builtins.str]] = None,
31182
31550
  scope: typing.Optional[builtins.str] = None,
31551
+ user_agent: typing.Optional[builtins.str] = None,
31552
+ user_agent_header: typing.Optional[builtins.str] = None,
31183
31553
  ) -> None:
31184
31554
  """Type checking stubs"""
31185
31555
  pass
31186
31556
 
31187
31557
  def _typecheckingstub__e3c7708618964f317da86f69cc51ebbcf99d7ff170204876d29a3e67fdbefcf9(
31188
31558
  *,
31559
+ max_pages: typing.Optional[jsii.Number] = None,
31189
31560
  rate_limit: typing.Optional[jsii.Number] = None,
31190
31561
  ) -> None:
31191
31562
  """Type checking stubs"""