aws-cdk-lib 2.185.0__py3-none-any.whl → 2.187.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.
- aws_cdk/__init__.py +383 -145
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.185.0.jsii.tgz → aws-cdk-lib@2.187.0.jsii.tgz} +0 -0
- aws_cdk/aws_amazonmq/__init__.py +3 -2
- aws_cdk/aws_amplify/__init__.py +124 -0
- aws_cdk/aws_apigateway/__init__.py +48 -2
- aws_cdk/aws_apigatewayv2/__init__.py +9 -0
- aws_cdk/aws_appconfig/__init__.py +3 -3
- aws_cdk/aws_applicationsignals/__init__.py +363 -3
- aws_cdk/aws_appsync/__init__.py +74 -3
- aws_cdk/aws_bedrock/__init__.py +395 -14
- aws_cdk/aws_cassandra/__init__.py +2 -2
- aws_cdk/aws_cleanrooms/__init__.py +21 -9
- aws_cdk/aws_cloudformation/__init__.py +1 -5
- aws_cdk/aws_cloudfront/__init__.py +15 -1
- aws_cdk/aws_cloudfront_origins/__init__.py +4 -2
- aws_cdk/aws_cloudtrail/__init__.py +4 -18
- aws_cdk/aws_cloudwatch/__init__.py +50 -50
- aws_cdk/aws_codeartifact/__init__.py +20 -33
- aws_cdk/aws_codebuild/__init__.py +9 -0
- aws_cdk/aws_codepipeline/__init__.py +1328 -120
- aws_cdk/aws_cognito/__init__.py +1 -1
- aws_cdk/aws_cognito_identitypool/__init__.py +2303 -0
- aws_cdk/aws_config/__init__.py +2 -5
- aws_cdk/aws_connect/__init__.py +3 -7
- aws_cdk/aws_controltower/__init__.py +18 -26
- aws_cdk/aws_datazone/__init__.py +3540 -10
- aws_cdk/aws_detective/__init__.py +3 -3
- aws_cdk/aws_dynamodb/__init__.py +37 -0
- aws_cdk/aws_ec2/__init__.py +714 -37
- aws_cdk/aws_ecr/__init__.py +143 -0
- aws_cdk/aws_ecr_assets/__init__.py +115 -4
- aws_cdk/aws_ecs/__init__.py +66 -20
- aws_cdk/aws_eks/__init__.py +114 -0
- aws_cdk/aws_events/__init__.py +26 -6
- aws_cdk/aws_forecast/__init__.py +1 -1
- aws_cdk/aws_fsx/__init__.py +2 -2
- aws_cdk/aws_gamelift/__init__.py +11 -11
- aws_cdk/aws_iam/__init__.py +264 -0
- aws_cdk/aws_identitystore/__init__.py +16 -16
- aws_cdk/aws_imagebuilder/__init__.py +3 -27
- aws_cdk/aws_iotsitewise/__init__.py +623 -0
- aws_cdk/aws_kinesisfirehose/__init__.py +2 -3
- aws_cdk/aws_kms/__init__.py +10 -11
- aws_cdk/aws_lakeformation/__init__.py +3 -3
- aws_cdk/aws_lambda/__init__.py +112 -5
- aws_cdk/aws_lambda_event_sources/__init__.py +65 -3
- aws_cdk/aws_lambda_nodejs/__init__.py +5 -24
- aws_cdk/aws_lex/__init__.py +981 -5
- aws_cdk/aws_location/__init__.py +24 -7
- aws_cdk/aws_mediaconnect/__init__.py +714 -290
- aws_cdk/aws_msk/__init__.py +8 -2
- aws_cdk/aws_mwaa/__init__.py +9 -9
- aws_cdk/aws_networkfirewall/__init__.py +60 -12
- aws_cdk/aws_oam/__init__.py +8 -37
- aws_cdk/aws_omics/__init__.py +216 -0
- aws_cdk/aws_quicksight/__init__.py +250 -108
- aws_cdk/aws_rds/__init__.py +102 -10
- aws_cdk/aws_redshiftserverless/__init__.py +192 -15
- aws_cdk/aws_route53/__init__.py +2 -2
- aws_cdk/aws_route53recoverycontrol/__init__.py +43 -2
- aws_cdk/aws_rum/__init__.py +315 -52
- aws_cdk/aws_s3_assets/__init__.py +70 -1
- aws_cdk/aws_s3_deployment/__init__.py +4 -0
- aws_cdk/aws_sagemaker/__init__.py +6 -4
- aws_cdk/aws_scheduler/__init__.py +3944 -121
- aws_cdk/aws_scheduler_targets/__init__.py +4460 -0
- aws_cdk/aws_securitylake/__init__.py +2 -2
- aws_cdk/aws_servicecatalog/__init__.py +4 -0
- aws_cdk/aws_sns/__init__.py +1 -1
- aws_cdk/aws_ssmquicksetup/__init__.py +5 -3
- aws_cdk/aws_stepfunctions/__init__.py +8 -0
- aws_cdk/aws_stepfunctions_tasks/__init__.py +4 -0
- aws_cdk/aws_synthetics/__init__.py +9 -0
- aws_cdk/aws_systemsmanagersap/__init__.py +150 -0
- aws_cdk/aws_timestream/__init__.py +4 -4
- aws_cdk/aws_wafv2/__init__.py +1117 -1446
- aws_cdk/aws_workspacesthinclient/__init__.py +4 -4
- aws_cdk/cloud_assembly_schema/__init__.py +60 -10
- aws_cdk/cx_api/__init__.py +38 -0
- aws_cdk/pipelines/__init__.py +20 -2
- {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/METADATA +4 -4
- {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/RECORD +87 -85
- {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/WHEEL +1 -1
- {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -7128,7 +7128,13 @@ class CfnDataSource(
|
|
|
7128
7128
|
metaclass=jsii.JSIIMeta,
|
|
7129
7129
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource",
|
|
7130
7130
|
):
|
|
7131
|
-
'''
|
|
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,19 @@ 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
|
+
'''A string used for identifying the crawler or bot when it accesses a web server.
|
|
7436
|
+
|
|
7437
|
+
The user agent header value consists of the ``bedrockbot`` , UUID, and a user agent suffix for your crawler (if one is provided). By default, it is set to ``bedrockbot_UUID`` . You can optionally append a custom suffix to ``bedrockbot_UUID`` to allowlist a specific user agent permitted to access your source URLs.
|
|
7438
|
+
|
|
7439
|
+
:cloudformationAttribute: DataSourceConfiguration.WebConfiguration.CrawlerConfiguration.UserAgentHeader
|
|
7440
|
+
'''
|
|
7441
|
+
return typing.cast(builtins.str, jsii.get(self, "attrDataSourceConfigurationWebConfigurationCrawlerConfigurationUserAgentHeader"))
|
|
7442
|
+
|
|
7410
7443
|
@builtins.property
|
|
7411
7444
|
@jsii.member(jsii_name="attrDataSourceId")
|
|
7412
7445
|
def attr_data_source_id(self) -> builtins.str:
|
|
@@ -7708,6 +7741,86 @@ class CfnDataSource(
|
|
|
7708
7741
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
7709
7742
|
)
|
|
7710
7743
|
|
|
7744
|
+
@jsii.data_type(
|
|
7745
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty",
|
|
7746
|
+
jsii_struct_bases=[],
|
|
7747
|
+
name_mapping={
|
|
7748
|
+
"enrichment_strategy_configuration": "enrichmentStrategyConfiguration",
|
|
7749
|
+
"model_arn": "modelArn",
|
|
7750
|
+
},
|
|
7751
|
+
)
|
|
7752
|
+
class BedrockFoundationModelContextEnrichmentConfigurationProperty:
|
|
7753
|
+
def __init__(
|
|
7754
|
+
self,
|
|
7755
|
+
*,
|
|
7756
|
+
enrichment_strategy_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.EnrichmentStrategyConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
7757
|
+
model_arn: builtins.str,
|
|
7758
|
+
) -> None:
|
|
7759
|
+
'''Context enrichment configuration is used to provide additional context to the RAG application using Amazon Bedrock foundation models.
|
|
7760
|
+
|
|
7761
|
+
:param enrichment_strategy_configuration: The enrichment stategy used to provide additional context. For example, Neptune GraphRAG uses Amazon Bedrock foundation models to perform chunk entity extraction.
|
|
7762
|
+
:param model_arn: The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.
|
|
7763
|
+
|
|
7764
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelcontextenrichmentconfiguration.html
|
|
7765
|
+
:exampleMetadata: fixture=_generated
|
|
7766
|
+
|
|
7767
|
+
Example::
|
|
7768
|
+
|
|
7769
|
+
# The code below shows an example of how to instantiate this type.
|
|
7770
|
+
# The values are placeholders you should change.
|
|
7771
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
7772
|
+
|
|
7773
|
+
bedrock_foundation_model_context_enrichment_configuration_property = bedrock.CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty(
|
|
7774
|
+
enrichment_strategy_configuration=bedrock.CfnDataSource.EnrichmentStrategyConfigurationProperty(
|
|
7775
|
+
method="method"
|
|
7776
|
+
),
|
|
7777
|
+
model_arn="modelArn"
|
|
7778
|
+
)
|
|
7779
|
+
'''
|
|
7780
|
+
if __debug__:
|
|
7781
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5a89b4cf2c8acc5a8649678b03650df048cec78aecf83c8401430c76e7d47bc5)
|
|
7782
|
+
check_type(argname="argument enrichment_strategy_configuration", value=enrichment_strategy_configuration, expected_type=type_hints["enrichment_strategy_configuration"])
|
|
7783
|
+
check_type(argname="argument model_arn", value=model_arn, expected_type=type_hints["model_arn"])
|
|
7784
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
7785
|
+
"enrichment_strategy_configuration": enrichment_strategy_configuration,
|
|
7786
|
+
"model_arn": model_arn,
|
|
7787
|
+
}
|
|
7788
|
+
|
|
7789
|
+
@builtins.property
|
|
7790
|
+
def enrichment_strategy_configuration(
|
|
7791
|
+
self,
|
|
7792
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnDataSource.EnrichmentStrategyConfigurationProperty"]:
|
|
7793
|
+
'''The enrichment stategy used to provide additional context.
|
|
7794
|
+
|
|
7795
|
+
For example, Neptune GraphRAG uses Amazon Bedrock foundation models to perform chunk entity extraction.
|
|
7796
|
+
|
|
7797
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelcontextenrichmentconfiguration.html#cfn-bedrock-datasource-bedrockfoundationmodelcontextenrichmentconfiguration-enrichmentstrategyconfiguration
|
|
7798
|
+
'''
|
|
7799
|
+
result = self._values.get("enrichment_strategy_configuration")
|
|
7800
|
+
assert result is not None, "Required property 'enrichment_strategy_configuration' is missing"
|
|
7801
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnDataSource.EnrichmentStrategyConfigurationProperty"], result)
|
|
7802
|
+
|
|
7803
|
+
@builtins.property
|
|
7804
|
+
def model_arn(self) -> builtins.str:
|
|
7805
|
+
'''The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.
|
|
7806
|
+
|
|
7807
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelcontextenrichmentconfiguration.html#cfn-bedrock-datasource-bedrockfoundationmodelcontextenrichmentconfiguration-modelarn
|
|
7808
|
+
'''
|
|
7809
|
+
result = self._values.get("model_arn")
|
|
7810
|
+
assert result is not None, "Required property 'model_arn' is missing"
|
|
7811
|
+
return typing.cast(builtins.str, result)
|
|
7812
|
+
|
|
7813
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
7814
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
7815
|
+
|
|
7816
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
7817
|
+
return not (rhs == self)
|
|
7818
|
+
|
|
7819
|
+
def __repr__(self) -> str:
|
|
7820
|
+
return "BedrockFoundationModelContextEnrichmentConfigurationProperty(%s)" % ", ".join(
|
|
7821
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
7822
|
+
)
|
|
7823
|
+
|
|
7711
7824
|
@jsii.data_type(
|
|
7712
7825
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource.ChunkingConfigurationProperty",
|
|
7713
7826
|
jsii_struct_bases=[],
|
|
@@ -8133,6 +8246,91 @@ class CfnDataSource(
|
|
|
8133
8246
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
8134
8247
|
)
|
|
8135
8248
|
|
|
8249
|
+
@jsii.data_type(
|
|
8250
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource.ContextEnrichmentConfigurationProperty",
|
|
8251
|
+
jsii_struct_bases=[],
|
|
8252
|
+
name_mapping={
|
|
8253
|
+
"type": "type",
|
|
8254
|
+
"bedrock_foundation_model_configuration": "bedrockFoundationModelConfiguration",
|
|
8255
|
+
},
|
|
8256
|
+
)
|
|
8257
|
+
class ContextEnrichmentConfigurationProperty:
|
|
8258
|
+
def __init__(
|
|
8259
|
+
self,
|
|
8260
|
+
*,
|
|
8261
|
+
type: builtins.str,
|
|
8262
|
+
bedrock_foundation_model_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
8263
|
+
) -> None:
|
|
8264
|
+
'''Context enrichment configuration is used to provide additional context to the RAG application.
|
|
8265
|
+
|
|
8266
|
+
:param type: The method used for context enrichment. It must be Amazon Bedrock foundation models.
|
|
8267
|
+
:param bedrock_foundation_model_configuration: The configuration of the Amazon Bedrock foundation model used for context enrichment.
|
|
8268
|
+
|
|
8269
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-contextenrichmentconfiguration.html
|
|
8270
|
+
:exampleMetadata: fixture=_generated
|
|
8271
|
+
|
|
8272
|
+
Example::
|
|
8273
|
+
|
|
8274
|
+
# The code below shows an example of how to instantiate this type.
|
|
8275
|
+
# The values are placeholders you should change.
|
|
8276
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
8277
|
+
|
|
8278
|
+
context_enrichment_configuration_property = bedrock.CfnDataSource.ContextEnrichmentConfigurationProperty(
|
|
8279
|
+
type="type",
|
|
8280
|
+
|
|
8281
|
+
# the properties below are optional
|
|
8282
|
+
bedrock_foundation_model_configuration=bedrock.CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty(
|
|
8283
|
+
enrichment_strategy_configuration=bedrock.CfnDataSource.EnrichmentStrategyConfigurationProperty(
|
|
8284
|
+
method="method"
|
|
8285
|
+
),
|
|
8286
|
+
model_arn="modelArn"
|
|
8287
|
+
)
|
|
8288
|
+
)
|
|
8289
|
+
'''
|
|
8290
|
+
if __debug__:
|
|
8291
|
+
type_hints = typing.get_type_hints(_typecheckingstub__4a8bedb8c03e6599f8bee498faf320fa0afe2ebb758107fb96251adfe3f9031f)
|
|
8292
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
8293
|
+
check_type(argname="argument bedrock_foundation_model_configuration", value=bedrock_foundation_model_configuration, expected_type=type_hints["bedrock_foundation_model_configuration"])
|
|
8294
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
8295
|
+
"type": type,
|
|
8296
|
+
}
|
|
8297
|
+
if bedrock_foundation_model_configuration is not None:
|
|
8298
|
+
self._values["bedrock_foundation_model_configuration"] = bedrock_foundation_model_configuration
|
|
8299
|
+
|
|
8300
|
+
@builtins.property
|
|
8301
|
+
def type(self) -> builtins.str:
|
|
8302
|
+
'''The method used for context enrichment.
|
|
8303
|
+
|
|
8304
|
+
It must be Amazon Bedrock foundation models.
|
|
8305
|
+
|
|
8306
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-contextenrichmentconfiguration.html#cfn-bedrock-datasource-contextenrichmentconfiguration-type
|
|
8307
|
+
'''
|
|
8308
|
+
result = self._values.get("type")
|
|
8309
|
+
assert result is not None, "Required property 'type' is missing"
|
|
8310
|
+
return typing.cast(builtins.str, result)
|
|
8311
|
+
|
|
8312
|
+
@builtins.property
|
|
8313
|
+
def bedrock_foundation_model_configuration(
|
|
8314
|
+
self,
|
|
8315
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty"]]:
|
|
8316
|
+
'''The configuration of the Amazon Bedrock foundation model used for context enrichment.
|
|
8317
|
+
|
|
8318
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-contextenrichmentconfiguration.html#cfn-bedrock-datasource-contextenrichmentconfiguration-bedrockfoundationmodelconfiguration
|
|
8319
|
+
'''
|
|
8320
|
+
result = self._values.get("bedrock_foundation_model_configuration")
|
|
8321
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty"]], result)
|
|
8322
|
+
|
|
8323
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
8324
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
8325
|
+
|
|
8326
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
8327
|
+
return not (rhs == self)
|
|
8328
|
+
|
|
8329
|
+
def __repr__(self) -> str:
|
|
8330
|
+
return "ContextEnrichmentConfigurationProperty(%s)" % ", ".join(
|
|
8331
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
8332
|
+
)
|
|
8333
|
+
|
|
8136
8334
|
@jsii.data_type(
|
|
8137
8335
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource.CrawlFilterConfigurationProperty",
|
|
8138
8336
|
jsii_struct_bases=[],
|
|
@@ -8458,11 +8656,14 @@ class CfnDataSource(
|
|
|
8458
8656
|
# the properties below are optional
|
|
8459
8657
|
crawler_configuration=bedrock.CfnDataSource.WebCrawlerConfigurationProperty(
|
|
8460
8658
|
crawler_limits=bedrock.CfnDataSource.WebCrawlerLimitsProperty(
|
|
8659
|
+
max_pages=123,
|
|
8461
8660
|
rate_limit=123
|
|
8462
8661
|
),
|
|
8463
8662
|
exclusion_filters=["exclusionFilters"],
|
|
8464
8663
|
inclusion_filters=["inclusionFilters"],
|
|
8465
|
-
scope="scope"
|
|
8664
|
+
scope="scope",
|
|
8665
|
+
user_agent="userAgent",
|
|
8666
|
+
user_agent_header="userAgentHeader"
|
|
8466
8667
|
)
|
|
8467
8668
|
)
|
|
8468
8669
|
)
|
|
@@ -8581,6 +8782,58 @@ class CfnDataSource(
|
|
|
8581
8782
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
8582
8783
|
)
|
|
8583
8784
|
|
|
8785
|
+
@jsii.data_type(
|
|
8786
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource.EnrichmentStrategyConfigurationProperty",
|
|
8787
|
+
jsii_struct_bases=[],
|
|
8788
|
+
name_mapping={"method": "method"},
|
|
8789
|
+
)
|
|
8790
|
+
class EnrichmentStrategyConfigurationProperty:
|
|
8791
|
+
def __init__(self, *, method: builtins.str) -> None:
|
|
8792
|
+
'''The strategy used for performing context enrichment.
|
|
8793
|
+
|
|
8794
|
+
:param method: The method used for the context enrichment strategy.
|
|
8795
|
+
|
|
8796
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-enrichmentstrategyconfiguration.html
|
|
8797
|
+
:exampleMetadata: fixture=_generated
|
|
8798
|
+
|
|
8799
|
+
Example::
|
|
8800
|
+
|
|
8801
|
+
# The code below shows an example of how to instantiate this type.
|
|
8802
|
+
# The values are placeholders you should change.
|
|
8803
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
8804
|
+
|
|
8805
|
+
enrichment_strategy_configuration_property = bedrock.CfnDataSource.EnrichmentStrategyConfigurationProperty(
|
|
8806
|
+
method="method"
|
|
8807
|
+
)
|
|
8808
|
+
'''
|
|
8809
|
+
if __debug__:
|
|
8810
|
+
type_hints = typing.get_type_hints(_typecheckingstub__644d76f9050da2eaff32542043cca01ff61629f76ef2e0191725886223a5f368)
|
|
8811
|
+
check_type(argname="argument method", value=method, expected_type=type_hints["method"])
|
|
8812
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
8813
|
+
"method": method,
|
|
8814
|
+
}
|
|
8815
|
+
|
|
8816
|
+
@builtins.property
|
|
8817
|
+
def method(self) -> builtins.str:
|
|
8818
|
+
'''The method used for the context enrichment strategy.
|
|
8819
|
+
|
|
8820
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-enrichmentstrategyconfiguration.html#cfn-bedrock-datasource-enrichmentstrategyconfiguration-method
|
|
8821
|
+
'''
|
|
8822
|
+
result = self._values.get("method")
|
|
8823
|
+
assert result is not None, "Required property 'method' is missing"
|
|
8824
|
+
return typing.cast(builtins.str, result)
|
|
8825
|
+
|
|
8826
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
8827
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
8828
|
+
|
|
8829
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
8830
|
+
return not (rhs == self)
|
|
8831
|
+
|
|
8832
|
+
def __repr__(self) -> str:
|
|
8833
|
+
return "EnrichmentStrategyConfigurationProperty(%s)" % ", ".join(
|
|
8834
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
8835
|
+
)
|
|
8836
|
+
|
|
8584
8837
|
@jsii.data_type(
|
|
8585
8838
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty",
|
|
8586
8839
|
jsii_struct_bases=[],
|
|
@@ -10381,6 +10634,7 @@ class CfnDataSource(
|
|
|
10381
10634
|
jsii_struct_bases=[],
|
|
10382
10635
|
name_mapping={
|
|
10383
10636
|
"chunking_configuration": "chunkingConfiguration",
|
|
10637
|
+
"context_enrichment_configuration": "contextEnrichmentConfiguration",
|
|
10384
10638
|
"custom_transformation_configuration": "customTransformationConfiguration",
|
|
10385
10639
|
"parsing_configuration": "parsingConfiguration",
|
|
10386
10640
|
},
|
|
@@ -10390,12 +10644,14 @@ class CfnDataSource(
|
|
|
10390
10644
|
self,
|
|
10391
10645
|
*,
|
|
10392
10646
|
chunking_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.ChunkingConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10647
|
+
context_enrichment_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.ContextEnrichmentConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10393
10648
|
custom_transformation_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.CustomTransformationConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10394
10649
|
parsing_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.ParsingConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10395
10650
|
) -> None:
|
|
10396
10651
|
'''Contains details about how to ingest the documents in a data source.
|
|
10397
10652
|
|
|
10398
10653
|
: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.
|
|
10654
|
+
:param context_enrichment_configuration: The context enrichment configuration used for ingestion of the data into the vector store.
|
|
10399
10655
|
:param custom_transformation_configuration: A custom document transformer for parsed data source documents.
|
|
10400
10656
|
: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
10657
|
|
|
@@ -10429,6 +10685,17 @@ class CfnDataSource(
|
|
|
10429
10685
|
max_tokens=123
|
|
10430
10686
|
)
|
|
10431
10687
|
),
|
|
10688
|
+
context_enrichment_configuration=bedrock.CfnDataSource.ContextEnrichmentConfigurationProperty(
|
|
10689
|
+
type="type",
|
|
10690
|
+
|
|
10691
|
+
# the properties below are optional
|
|
10692
|
+
bedrock_foundation_model_configuration=bedrock.CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty(
|
|
10693
|
+
enrichment_strategy_configuration=bedrock.CfnDataSource.EnrichmentStrategyConfigurationProperty(
|
|
10694
|
+
method="method"
|
|
10695
|
+
),
|
|
10696
|
+
model_arn="modelArn"
|
|
10697
|
+
)
|
|
10698
|
+
),
|
|
10432
10699
|
custom_transformation_configuration=bedrock.CfnDataSource.CustomTransformationConfigurationProperty(
|
|
10433
10700
|
intermediate_storage=bedrock.CfnDataSource.IntermediateStorageProperty(
|
|
10434
10701
|
s3_location=bedrock.CfnDataSource.S3LocationProperty(
|
|
@@ -10466,11 +10733,14 @@ class CfnDataSource(
|
|
|
10466
10733
|
if __debug__:
|
|
10467
10734
|
type_hints = typing.get_type_hints(_typecheckingstub__37255db3e7cacfdeadc2d28bfe7938fd13ab4a2cd72190024a531eddf1fd9ec0)
|
|
10468
10735
|
check_type(argname="argument chunking_configuration", value=chunking_configuration, expected_type=type_hints["chunking_configuration"])
|
|
10736
|
+
check_type(argname="argument context_enrichment_configuration", value=context_enrichment_configuration, expected_type=type_hints["context_enrichment_configuration"])
|
|
10469
10737
|
check_type(argname="argument custom_transformation_configuration", value=custom_transformation_configuration, expected_type=type_hints["custom_transformation_configuration"])
|
|
10470
10738
|
check_type(argname="argument parsing_configuration", value=parsing_configuration, expected_type=type_hints["parsing_configuration"])
|
|
10471
10739
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
10472
10740
|
if chunking_configuration is not None:
|
|
10473
10741
|
self._values["chunking_configuration"] = chunking_configuration
|
|
10742
|
+
if context_enrichment_configuration is not None:
|
|
10743
|
+
self._values["context_enrichment_configuration"] = context_enrichment_configuration
|
|
10474
10744
|
if custom_transformation_configuration is not None:
|
|
10475
10745
|
self._values["custom_transformation_configuration"] = custom_transformation_configuration
|
|
10476
10746
|
if parsing_configuration is not None:
|
|
@@ -10489,6 +10759,17 @@ class CfnDataSource(
|
|
|
10489
10759
|
result = self._values.get("chunking_configuration")
|
|
10490
10760
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataSource.ChunkingConfigurationProperty"]], result)
|
|
10491
10761
|
|
|
10762
|
+
@builtins.property
|
|
10763
|
+
def context_enrichment_configuration(
|
|
10764
|
+
self,
|
|
10765
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataSource.ContextEnrichmentConfigurationProperty"]]:
|
|
10766
|
+
'''The context enrichment configuration used for ingestion of the data into the vector store.
|
|
10767
|
+
|
|
10768
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-vectoringestionconfiguration.html#cfn-bedrock-datasource-vectoringestionconfiguration-contextenrichmentconfiguration
|
|
10769
|
+
'''
|
|
10770
|
+
result = self._values.get("context_enrichment_configuration")
|
|
10771
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataSource.ContextEnrichmentConfigurationProperty"]], result)
|
|
10772
|
+
|
|
10492
10773
|
@builtins.property
|
|
10493
10774
|
def custom_transformation_configuration(
|
|
10494
10775
|
self,
|
|
@@ -10532,6 +10813,8 @@ class CfnDataSource(
|
|
|
10532
10813
|
"exclusion_filters": "exclusionFilters",
|
|
10533
10814
|
"inclusion_filters": "inclusionFilters",
|
|
10534
10815
|
"scope": "scope",
|
|
10816
|
+
"user_agent": "userAgent",
|
|
10817
|
+
"user_agent_header": "userAgentHeader",
|
|
10535
10818
|
},
|
|
10536
10819
|
)
|
|
10537
10820
|
class WebCrawlerConfigurationProperty:
|
|
@@ -10542,6 +10825,8 @@ class CfnDataSource(
|
|
|
10542
10825
|
exclusion_filters: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
10543
10826
|
inclusion_filters: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
10544
10827
|
scope: typing.Optional[builtins.str] = None,
|
|
10828
|
+
user_agent: typing.Optional[builtins.str] = None,
|
|
10829
|
+
user_agent_header: typing.Optional[builtins.str] = None,
|
|
10545
10830
|
) -> None:
|
|
10546
10831
|
'''The configuration of web URLs that you want to crawl.
|
|
10547
10832
|
|
|
@@ -10551,6 +10836,8 @@ class CfnDataSource(
|
|
|
10551
10836
|
: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
10837
|
: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
10838
|
: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".
|
|
10839
|
+
:param user_agent: Returns the user agent suffix for your web crawler.
|
|
10840
|
+
:param user_agent_header: A string used for identifying the crawler or bot when it accesses a web server. The user agent header value consists of the ``bedrockbot`` , UUID, and a user agent suffix for your crawler (if one is provided). By default, it is set to ``bedrockbot_UUID`` . You can optionally append a custom suffix to ``bedrockbot_UUID`` to allowlist a specific user agent permitted to access your source URLs.
|
|
10554
10841
|
|
|
10555
10842
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html
|
|
10556
10843
|
:exampleMetadata: fixture=_generated
|
|
@@ -10563,11 +10850,14 @@ class CfnDataSource(
|
|
|
10563
10850
|
|
|
10564
10851
|
web_crawler_configuration_property = bedrock.CfnDataSource.WebCrawlerConfigurationProperty(
|
|
10565
10852
|
crawler_limits=bedrock.CfnDataSource.WebCrawlerLimitsProperty(
|
|
10853
|
+
max_pages=123,
|
|
10566
10854
|
rate_limit=123
|
|
10567
10855
|
),
|
|
10568
10856
|
exclusion_filters=["exclusionFilters"],
|
|
10569
10857
|
inclusion_filters=["inclusionFilters"],
|
|
10570
|
-
scope="scope"
|
|
10858
|
+
scope="scope",
|
|
10859
|
+
user_agent="userAgent",
|
|
10860
|
+
user_agent_header="userAgentHeader"
|
|
10571
10861
|
)
|
|
10572
10862
|
'''
|
|
10573
10863
|
if __debug__:
|
|
@@ -10576,6 +10866,8 @@ class CfnDataSource(
|
|
|
10576
10866
|
check_type(argname="argument exclusion_filters", value=exclusion_filters, expected_type=type_hints["exclusion_filters"])
|
|
10577
10867
|
check_type(argname="argument inclusion_filters", value=inclusion_filters, expected_type=type_hints["inclusion_filters"])
|
|
10578
10868
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
10869
|
+
check_type(argname="argument user_agent", value=user_agent, expected_type=type_hints["user_agent"])
|
|
10870
|
+
check_type(argname="argument user_agent_header", value=user_agent_header, expected_type=type_hints["user_agent_header"])
|
|
10579
10871
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
10580
10872
|
if crawler_limits is not None:
|
|
10581
10873
|
self._values["crawler_limits"] = crawler_limits
|
|
@@ -10585,6 +10877,10 @@ class CfnDataSource(
|
|
|
10585
10877
|
self._values["inclusion_filters"] = inclusion_filters
|
|
10586
10878
|
if scope is not None:
|
|
10587
10879
|
self._values["scope"] = scope
|
|
10880
|
+
if user_agent is not None:
|
|
10881
|
+
self._values["user_agent"] = user_agent
|
|
10882
|
+
if user_agent_header is not None:
|
|
10883
|
+
self._values["user_agent_header"] = user_agent_header
|
|
10588
10884
|
|
|
10589
10885
|
@builtins.property
|
|
10590
10886
|
def crawler_limits(
|
|
@@ -10630,6 +10926,26 @@ class CfnDataSource(
|
|
|
10630
10926
|
result = self._values.get("scope")
|
|
10631
10927
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
10632
10928
|
|
|
10929
|
+
@builtins.property
|
|
10930
|
+
def user_agent(self) -> typing.Optional[builtins.str]:
|
|
10931
|
+
'''Returns the user agent suffix for your web crawler.
|
|
10932
|
+
|
|
10933
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-useragent
|
|
10934
|
+
'''
|
|
10935
|
+
result = self._values.get("user_agent")
|
|
10936
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
10937
|
+
|
|
10938
|
+
@builtins.property
|
|
10939
|
+
def user_agent_header(self) -> typing.Optional[builtins.str]:
|
|
10940
|
+
'''A string used for identifying the crawler or bot when it accesses a web server.
|
|
10941
|
+
|
|
10942
|
+
The user agent header value consists of the ``bedrockbot`` , UUID, and a user agent suffix for your crawler (if one is provided). By default, it is set to ``bedrockbot_UUID`` . You can optionally append a custom suffix to ``bedrockbot_UUID`` to allowlist a specific user agent permitted to access your source URLs.
|
|
10943
|
+
|
|
10944
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-useragentheader
|
|
10945
|
+
'''
|
|
10946
|
+
result = self._values.get("user_agent_header")
|
|
10947
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
10948
|
+
|
|
10633
10949
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
10634
10950
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
10635
10951
|
|
|
@@ -10644,14 +10960,20 @@ class CfnDataSource(
|
|
|
10644
10960
|
@jsii.data_type(
|
|
10645
10961
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource.WebCrawlerLimitsProperty",
|
|
10646
10962
|
jsii_struct_bases=[],
|
|
10647
|
-
name_mapping={"rate_limit": "rateLimit"},
|
|
10963
|
+
name_mapping={"max_pages": "maxPages", "rate_limit": "rateLimit"},
|
|
10648
10964
|
)
|
|
10649
10965
|
class WebCrawlerLimitsProperty:
|
|
10650
|
-
def __init__(
|
|
10966
|
+
def __init__(
|
|
10967
|
+
self,
|
|
10968
|
+
*,
|
|
10969
|
+
max_pages: typing.Optional[jsii.Number] = None,
|
|
10970
|
+
rate_limit: typing.Optional[jsii.Number] = None,
|
|
10971
|
+
) -> None:
|
|
10651
10972
|
'''The rate limits for the URLs that you want to crawl.
|
|
10652
10973
|
|
|
10653
10974
|
You should be authorized to crawl the URLs.
|
|
10654
10975
|
|
|
10976
|
+
:param max_pages: The max number of web pages crawled from your source URLs, up to 25,000 pages. If the web pages exceed this limit, the data source sync will fail and no web pages will be ingested.
|
|
10655
10977
|
:param rate_limit: The max rate at which pages are crawled, up to 300 per minute per host.
|
|
10656
10978
|
|
|
10657
10979
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerlimits.html
|
|
@@ -10664,16 +10986,31 @@ class CfnDataSource(
|
|
|
10664
10986
|
from aws_cdk import aws_bedrock as bedrock
|
|
10665
10987
|
|
|
10666
10988
|
web_crawler_limits_property = bedrock.CfnDataSource.WebCrawlerLimitsProperty(
|
|
10989
|
+
max_pages=123,
|
|
10667
10990
|
rate_limit=123
|
|
10668
10991
|
)
|
|
10669
10992
|
'''
|
|
10670
10993
|
if __debug__:
|
|
10671
10994
|
type_hints = typing.get_type_hints(_typecheckingstub__e3c7708618964f317da86f69cc51ebbcf99d7ff170204876d29a3e67fdbefcf9)
|
|
10995
|
+
check_type(argname="argument max_pages", value=max_pages, expected_type=type_hints["max_pages"])
|
|
10672
10996
|
check_type(argname="argument rate_limit", value=rate_limit, expected_type=type_hints["rate_limit"])
|
|
10673
10997
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
10998
|
+
if max_pages is not None:
|
|
10999
|
+
self._values["max_pages"] = max_pages
|
|
10674
11000
|
if rate_limit is not None:
|
|
10675
11001
|
self._values["rate_limit"] = rate_limit
|
|
10676
11002
|
|
|
11003
|
+
@builtins.property
|
|
11004
|
+
def max_pages(self) -> typing.Optional[jsii.Number]:
|
|
11005
|
+
'''The max number of web pages crawled from your source URLs, up to 25,000 pages.
|
|
11006
|
+
|
|
11007
|
+
If the web pages exceed this limit, the data source sync will fail and no web pages will be ingested.
|
|
11008
|
+
|
|
11009
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerlimits.html#cfn-bedrock-datasource-webcrawlerlimits-maxpages
|
|
11010
|
+
'''
|
|
11011
|
+
result = self._values.get("max_pages")
|
|
11012
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
11013
|
+
|
|
10677
11014
|
@builtins.property
|
|
10678
11015
|
def rate_limit(self) -> typing.Optional[jsii.Number]:
|
|
10679
11016
|
'''The max rate at which pages are crawled, up to 300 per minute per host.
|
|
@@ -10735,11 +11072,14 @@ class CfnDataSource(
|
|
|
10735
11072
|
# the properties below are optional
|
|
10736
11073
|
crawler_configuration=bedrock.CfnDataSource.WebCrawlerConfigurationProperty(
|
|
10737
11074
|
crawler_limits=bedrock.CfnDataSource.WebCrawlerLimitsProperty(
|
|
11075
|
+
max_pages=123,
|
|
10738
11076
|
rate_limit=123
|
|
10739
11077
|
),
|
|
10740
11078
|
exclusion_filters=["exclusionFilters"],
|
|
10741
11079
|
inclusion_filters=["inclusionFilters"],
|
|
10742
|
-
scope="scope"
|
|
11080
|
+
scope="scope",
|
|
11081
|
+
user_agent="userAgent",
|
|
11082
|
+
user_agent_header="userAgentHeader"
|
|
10743
11083
|
)
|
|
10744
11084
|
)
|
|
10745
11085
|
'''
|
|
@@ -11001,11 +11341,14 @@ class CfnDataSourceProps:
|
|
|
11001
11341
|
# the properties below are optional
|
|
11002
11342
|
crawler_configuration=bedrock.CfnDataSource.WebCrawlerConfigurationProperty(
|
|
11003
11343
|
crawler_limits=bedrock.CfnDataSource.WebCrawlerLimitsProperty(
|
|
11344
|
+
max_pages=123,
|
|
11004
11345
|
rate_limit=123
|
|
11005
11346
|
),
|
|
11006
11347
|
exclusion_filters=["exclusionFilters"],
|
|
11007
11348
|
inclusion_filters=["inclusionFilters"],
|
|
11008
|
-
scope="scope"
|
|
11349
|
+
scope="scope",
|
|
11350
|
+
user_agent="userAgent",
|
|
11351
|
+
user_agent_header="userAgentHeader"
|
|
11009
11352
|
)
|
|
11010
11353
|
)
|
|
11011
11354
|
),
|
|
@@ -11039,6 +11382,17 @@ class CfnDataSourceProps:
|
|
|
11039
11382
|
max_tokens=123
|
|
11040
11383
|
)
|
|
11041
11384
|
),
|
|
11385
|
+
context_enrichment_configuration=bedrock.CfnDataSource.ContextEnrichmentConfigurationProperty(
|
|
11386
|
+
type="type",
|
|
11387
|
+
|
|
11388
|
+
# the properties below are optional
|
|
11389
|
+
bedrock_foundation_model_configuration=bedrock.CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty(
|
|
11390
|
+
enrichment_strategy_configuration=bedrock.CfnDataSource.EnrichmentStrategyConfigurationProperty(
|
|
11391
|
+
method="method"
|
|
11392
|
+
),
|
|
11393
|
+
model_arn="modelArn"
|
|
11394
|
+
)
|
|
11395
|
+
),
|
|
11042
11396
|
custom_transformation_configuration=bedrock.CfnDataSource.CustomTransformationConfigurationProperty(
|
|
11043
11397
|
intermediate_storage=bedrock.CfnDataSource.IntermediateStorageProperty(
|
|
11044
11398
|
s3_location=bedrock.CfnDataSource.S3LocationProperty(
|
|
@@ -25688,7 +26042,7 @@ class CfnPrompt(
|
|
|
25688
26042
|
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
26043
|
.. epigraph::
|
|
25690
26044
|
|
|
25691
|
-
This field is only supported by Anthropic Claude 3 models.
|
|
26045
|
+
This field is only supported by Amazon Nova models and Anthropic Claude 3 models.
|
|
25692
26046
|
|
|
25693
26047
|
:param name: The name of the tool that the model must request.
|
|
25694
26048
|
|
|
@@ -26039,7 +26393,7 @@ class CfnPrompt(
|
|
|
26039
26393
|
|
|
26040
26394
|
:param any: The model must request at least one tool (no text is generated).
|
|
26041
26395
|
: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.
|
|
26396
|
+
:param tool: The Model must request the specified tool. Only supported by Amazon Nova models and Anthropic Claude 3 models.
|
|
26043
26397
|
|
|
26044
26398
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html
|
|
26045
26399
|
:exampleMetadata: fixture=_generated
|
|
@@ -26100,7 +26454,7 @@ class CfnPrompt(
|
|
|
26100
26454
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.SpecificToolChoiceProperty"]]:
|
|
26101
26455
|
'''The Model must request the specified tool.
|
|
26102
26456
|
|
|
26103
|
-
Only supported by Anthropic Claude 3 models.
|
|
26457
|
+
Only supported by Amazon Nova models and Anthropic Claude 3 models.
|
|
26104
26458
|
|
|
26105
26459
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html#cfn-bedrock-prompt-toolchoice-tool
|
|
26106
26460
|
'''
|
|
@@ -28121,7 +28475,7 @@ class CfnPromptVersion(
|
|
|
28121
28475
|
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
28476
|
.. epigraph::
|
|
28123
28477
|
|
|
28124
|
-
This field is only supported by Anthropic Claude 3 models.
|
|
28478
|
+
This field is only supported by Amazon Nova models and Anthropic Claude 3 models.
|
|
28125
28479
|
|
|
28126
28480
|
:param name: The name of the tool that the model must request.
|
|
28127
28481
|
|
|
@@ -28363,7 +28717,7 @@ class CfnPromptVersion(
|
|
|
28363
28717
|
|
|
28364
28718
|
:param any: The model must request at least one tool (no text is generated).
|
|
28365
28719
|
: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.
|
|
28720
|
+
:param tool: The Model must request the specified tool. Only supported by Amazon Nova models and Anthropic Claude 3 models.
|
|
28367
28721
|
|
|
28368
28722
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-toolchoice.html
|
|
28369
28723
|
:exampleMetadata: fixture=_generated
|
|
@@ -28424,7 +28778,7 @@ class CfnPromptVersion(
|
|
|
28424
28778
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.SpecificToolChoiceProperty"]]:
|
|
28425
28779
|
'''The Model must request the specified tool.
|
|
28426
28780
|
|
|
28427
|
-
Only supported by Anthropic Claude 3 models.
|
|
28781
|
+
Only supported by Amazon Nova models and Anthropic Claude 3 models.
|
|
28428
28782
|
|
|
28429
28783
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-toolchoice.html#cfn-bedrock-promptversion-toolchoice-tool
|
|
28430
28784
|
'''
|
|
@@ -30921,6 +31275,14 @@ def _typecheckingstub__1988b824c4171f598d30cf03abdb56bc617fd654dd3daf3e641d11499
|
|
|
30921
31275
|
"""Type checking stubs"""
|
|
30922
31276
|
pass
|
|
30923
31277
|
|
|
31278
|
+
def _typecheckingstub__5a89b4cf2c8acc5a8649678b03650df048cec78aecf83c8401430c76e7d47bc5(
|
|
31279
|
+
*,
|
|
31280
|
+
enrichment_strategy_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.EnrichmentStrategyConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
31281
|
+
model_arn: builtins.str,
|
|
31282
|
+
) -> None:
|
|
31283
|
+
"""Type checking stubs"""
|
|
31284
|
+
pass
|
|
31285
|
+
|
|
30924
31286
|
def _typecheckingstub__8beec747a0f57f641fd4bd3b03f73b678c8e286785d948f80998682f0c0a40e5(
|
|
30925
31287
|
*,
|
|
30926
31288
|
chunking_strategy: builtins.str,
|
|
@@ -30956,6 +31318,14 @@ def _typecheckingstub__f6b1b77774988ec57c830fc9a0a2a7c4c9f4497cdb86ab6c5fa2ebbb1
|
|
|
30956
31318
|
"""Type checking stubs"""
|
|
30957
31319
|
pass
|
|
30958
31320
|
|
|
31321
|
+
def _typecheckingstub__4a8bedb8c03e6599f8bee498faf320fa0afe2ebb758107fb96251adfe3f9031f(
|
|
31322
|
+
*,
|
|
31323
|
+
type: builtins.str,
|
|
31324
|
+
bedrock_foundation_model_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
31325
|
+
) -> None:
|
|
31326
|
+
"""Type checking stubs"""
|
|
31327
|
+
pass
|
|
31328
|
+
|
|
30959
31329
|
def _typecheckingstub__df771f43b4edc46788782c796b78e1b33220d226fe90547899ccc3c75ce15ac8(
|
|
30960
31330
|
*,
|
|
30961
31331
|
type: builtins.str,
|
|
@@ -30984,6 +31354,13 @@ def _typecheckingstub__a2e1b0c807d6904904c91cc13a2f47ee5db24090758446e26a864b57b
|
|
|
30984
31354
|
"""Type checking stubs"""
|
|
30985
31355
|
pass
|
|
30986
31356
|
|
|
31357
|
+
def _typecheckingstub__644d76f9050da2eaff32542043cca01ff61629f76ef2e0191725886223a5f368(
|
|
31358
|
+
*,
|
|
31359
|
+
method: builtins.str,
|
|
31360
|
+
) -> None:
|
|
31361
|
+
"""Type checking stubs"""
|
|
31362
|
+
pass
|
|
31363
|
+
|
|
30987
31364
|
def _typecheckingstub__7b9e8054cbf79d2292e738f1061947914954b89440b15bf572c87c9695aaf7bc(
|
|
30988
31365
|
*,
|
|
30989
31366
|
max_tokens: jsii.Number,
|
|
@@ -31168,6 +31545,7 @@ def _typecheckingstub__33e4e6226e3e29b9d96cc7d5d58f6d2d4062908e865a2e74a0c3a6b36
|
|
|
31168
31545
|
def _typecheckingstub__37255db3e7cacfdeadc2d28bfe7938fd13ab4a2cd72190024a531eddf1fd9ec0(
|
|
31169
31546
|
*,
|
|
31170
31547
|
chunking_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.ChunkingConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
31548
|
+
context_enrichment_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.ContextEnrichmentConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
31171
31549
|
custom_transformation_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.CustomTransformationConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
31172
31550
|
parsing_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.ParsingConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
31173
31551
|
) -> None:
|
|
@@ -31180,12 +31558,15 @@ def _typecheckingstub__19f2bf049e2cc7c767a94b404cf6594346506f3a78f18601159a383fa
|
|
|
31180
31558
|
exclusion_filters: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
31181
31559
|
inclusion_filters: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
31182
31560
|
scope: typing.Optional[builtins.str] = None,
|
|
31561
|
+
user_agent: typing.Optional[builtins.str] = None,
|
|
31562
|
+
user_agent_header: typing.Optional[builtins.str] = None,
|
|
31183
31563
|
) -> None:
|
|
31184
31564
|
"""Type checking stubs"""
|
|
31185
31565
|
pass
|
|
31186
31566
|
|
|
31187
31567
|
def _typecheckingstub__e3c7708618964f317da86f69cc51ebbcf99d7ff170204876d29a3e67fdbefcf9(
|
|
31188
31568
|
*,
|
|
31569
|
+
max_pages: typing.Optional[jsii.Number] = None,
|
|
31189
31570
|
rate_limit: typing.Optional[jsii.Number] = None,
|
|
31190
31571
|
) -> None:
|
|
31191
31572
|
"""Type checking stubs"""
|