aws-cdk-lib 2.186.0__py3-none-any.whl → 2.188.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 +303 -119
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.186.0.jsii.tgz → aws-cdk-lib@2.188.0.jsii.tgz} +0 -0
- aws_cdk/aws_amplify/__init__.py +136 -0
- aws_cdk/aws_apigateway/__init__.py +69 -17
- aws_cdk/aws_apigatewayv2/__init__.py +88 -0
- aws_cdk/aws_appconfig/__init__.py +30 -14
- aws_cdk/aws_appsync/__init__.py +14 -5
- aws_cdk/aws_arczonalshift/__init__.py +4 -4
- aws_cdk/aws_bedrock/__init__.py +637 -32
- aws_cdk/aws_budgets/__init__.py +8 -8
- aws_cdk/aws_cassandra/__init__.py +4 -2
- aws_cdk/aws_ce/__init__.py +2 -2
- aws_cdk/aws_cloudformation/__init__.py +3 -3
- aws_cdk/aws_cloudfront/__init__.py +11 -0
- aws_cdk/aws_cloudtrail/__init__.py +4 -18
- aws_cdk/aws_cloudwatch/__init__.py +50 -50
- aws_cdk/aws_codebuild/__init__.py +32 -1
- aws_cdk/aws_codepipeline/__init__.py +47 -32
- aws_cdk/aws_codepipeline_actions/__init__.py +2786 -1042
- aws_cdk/aws_codestarnotifications/__init__.py +16 -16
- aws_cdk/aws_cognito/__init__.py +8 -2
- aws_cdk/aws_config/__init__.py +2 -5
- aws_cdk/aws_datazone/__init__.py +287 -226
- aws_cdk/aws_detective/__init__.py +3 -3
- aws_cdk/aws_dynamodb/__init__.py +37 -0
- aws_cdk/aws_ec2/__init__.py +2448 -442
- aws_cdk/aws_ecr/__init__.py +143 -0
- aws_cdk/aws_ecr_assets/__init__.py +115 -4
- aws_cdk/aws_ecs/__init__.py +51 -0
- aws_cdk/aws_eks/__init__.py +222 -6
- aws_cdk/aws_events/__init__.py +8 -11
- aws_cdk/aws_events_targets/__init__.py +136 -0
- 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 +6 -4
- aws_cdk/aws_identitystore/__init__.py +6 -4
- aws_cdk/aws_iotsitewise/__init__.py +623 -0
- aws_cdk/aws_kinesisfirehose/__init__.py +38 -0
- aws_cdk/aws_kms/__init__.py +10 -11
- aws_cdk/aws_lakeformation/__init__.py +3 -3
- aws_cdk/aws_lambda/__init__.py +105 -4
- aws_cdk/aws_lambda_event_sources/__init__.py +87 -25
- aws_cdk/aws_lambda_nodejs/__init__.py +5 -24
- aws_cdk/aws_lex/__init__.py +985 -5
- aws_cdk/aws_logs/__init__.py +18 -0
- aws_cdk/aws_logs_destinations/__init__.py +146 -0
- aws_cdk/aws_mediaconnect/__init__.py +714 -290
- aws_cdk/aws_mwaa/__init__.py +9 -9
- aws_cdk/aws_networkfirewall/__init__.py +44 -0
- aws_cdk/aws_notifications/__init__.py +4 -4
- aws_cdk/aws_omics/__init__.py +225 -1
- aws_cdk/aws_opensearchserverless/__init__.py +31 -23
- aws_cdk/aws_organizations/__init__.py +1 -1
- aws_cdk/aws_pcaconnectorad/__init__.py +3 -2
- aws_cdk/aws_quicksight/__init__.py +268 -50
- aws_cdk/aws_rds/__init__.py +186 -10
- aws_cdk/aws_route53/__init__.py +5 -5
- aws_cdk/aws_route53recoverycontrol/__init__.py +41 -2
- aws_cdk/aws_rum/__init__.py +13 -10
- aws_cdk/aws_s3/__init__.py +3 -6
- aws_cdk/aws_s3_assets/__init__.py +70 -1
- aws_cdk/aws_s3_deployment/__init__.py +4 -0
- aws_cdk/aws_sagemaker/__init__.py +47 -4
- aws_cdk/aws_scheduler_targets/__init__.py +4 -16
- 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_ssmincidents/__init__.py +10 -10
- aws_cdk/aws_stepfunctions/__init__.py +23 -17
- aws_cdk/aws_stepfunctions_tasks/__init__.py +4 -0
- aws_cdk/aws_synthetics/__init__.py +9 -0
- aws_cdk/aws_systemsmanagersap/__init__.py +160 -0
- aws_cdk/aws_transfer/__init__.py +19 -10
- aws_cdk/aws_wafv2/__init__.py +512 -1141
- aws_cdk/cloud_assembly_schema/__init__.py +60 -10
- aws_cdk/cx_api/__init__.py +38 -2
- aws_cdk/pipelines/__init__.py +52 -2
- {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/METADATA +4 -4
- {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/RECORD +85 -85
- {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/WHEEL +1 -1
- {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -7432,7 +7432,9 @@ class CfnDataSource(
|
|
|
7432
7432
|
def attr_data_source_configuration_web_configuration_crawler_configuration_user_agent_header(
|
|
7433
7433
|
self,
|
|
7434
7434
|
) -> builtins.str:
|
|
7435
|
-
'''
|
|
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.
|
|
7436
7438
|
|
|
7437
7439
|
:cloudformationAttribute: DataSourceConfiguration.WebConfiguration.CrawlerConfiguration.UserAgentHeader
|
|
7438
7440
|
'''
|
|
@@ -7754,10 +7756,10 @@ class CfnDataSource(
|
|
|
7754
7756
|
enrichment_strategy_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.EnrichmentStrategyConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
7755
7757
|
model_arn: builtins.str,
|
|
7756
7758
|
) -> None:
|
|
7757
|
-
'''
|
|
7759
|
+
'''Context enrichment configuration is used to provide additional context to the RAG application using Amazon Bedrock foundation models.
|
|
7758
7760
|
|
|
7759
|
-
:param enrichment_strategy_configuration:
|
|
7760
|
-
:param model_arn: The model
|
|
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.
|
|
7761
7763
|
|
|
7762
7764
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelcontextenrichmentconfiguration.html
|
|
7763
7765
|
:exampleMetadata: fixture=_generated
|
|
@@ -7788,7 +7790,9 @@ class CfnDataSource(
|
|
|
7788
7790
|
def enrichment_strategy_configuration(
|
|
7789
7791
|
self,
|
|
7790
7792
|
) -> typing.Union[_IResolvable_da3f097b, "CfnDataSource.EnrichmentStrategyConfigurationProperty"]:
|
|
7791
|
-
'''
|
|
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.
|
|
7792
7796
|
|
|
7793
7797
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelcontextenrichmentconfiguration.html#cfn-bedrock-datasource-bedrockfoundationmodelcontextenrichmentconfiguration-enrichmentstrategyconfiguration
|
|
7794
7798
|
'''
|
|
@@ -7798,7 +7802,7 @@ class CfnDataSource(
|
|
|
7798
7802
|
|
|
7799
7803
|
@builtins.property
|
|
7800
7804
|
def model_arn(self) -> builtins.str:
|
|
7801
|
-
'''The model
|
|
7805
|
+
'''The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.
|
|
7802
7806
|
|
|
7803
7807
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelcontextenrichmentconfiguration.html#cfn-bedrock-datasource-bedrockfoundationmodelcontextenrichmentconfiguration-modelarn
|
|
7804
7808
|
'''
|
|
@@ -8257,10 +8261,10 @@ class CfnDataSource(
|
|
|
8257
8261
|
type: builtins.str,
|
|
8258
8262
|
bedrock_foundation_model_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
8259
8263
|
) -> None:
|
|
8260
|
-
'''
|
|
8264
|
+
'''Context enrichment configuration is used to provide additional context to the RAG application.
|
|
8261
8265
|
|
|
8262
|
-
:param type:
|
|
8263
|
-
:param bedrock_foundation_model_configuration:
|
|
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.
|
|
8264
8268
|
|
|
8265
8269
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-contextenrichmentconfiguration.html
|
|
8266
8270
|
:exampleMetadata: fixture=_generated
|
|
@@ -8295,7 +8299,9 @@ class CfnDataSource(
|
|
|
8295
8299
|
|
|
8296
8300
|
@builtins.property
|
|
8297
8301
|
def type(self) -> builtins.str:
|
|
8298
|
-
'''
|
|
8302
|
+
'''The method used for context enrichment.
|
|
8303
|
+
|
|
8304
|
+
It must be Amazon Bedrock foundation models.
|
|
8299
8305
|
|
|
8300
8306
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-contextenrichmentconfiguration.html#cfn-bedrock-datasource-contextenrichmentconfiguration-type
|
|
8301
8307
|
'''
|
|
@@ -8307,7 +8313,7 @@ class CfnDataSource(
|
|
|
8307
8313
|
def bedrock_foundation_model_configuration(
|
|
8308
8314
|
self,
|
|
8309
8315
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataSource.BedrockFoundationModelContextEnrichmentConfigurationProperty"]]:
|
|
8310
|
-
'''
|
|
8316
|
+
'''The configuration of the Amazon Bedrock foundation model used for context enrichment.
|
|
8311
8317
|
|
|
8312
8318
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-contextenrichmentconfiguration.html#cfn-bedrock-datasource-contextenrichmentconfiguration-bedrockfoundationmodelconfiguration
|
|
8313
8319
|
'''
|
|
@@ -8783,9 +8789,9 @@ class CfnDataSource(
|
|
|
8783
8789
|
)
|
|
8784
8790
|
class EnrichmentStrategyConfigurationProperty:
|
|
8785
8791
|
def __init__(self, *, method: builtins.str) -> None:
|
|
8786
|
-
'''
|
|
8792
|
+
'''The strategy used for performing context enrichment.
|
|
8787
8793
|
|
|
8788
|
-
:param method:
|
|
8794
|
+
:param method: The method used for the context enrichment strategy.
|
|
8789
8795
|
|
|
8790
8796
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-enrichmentstrategyconfiguration.html
|
|
8791
8797
|
:exampleMetadata: fixture=_generated
|
|
@@ -8809,7 +8815,7 @@ class CfnDataSource(
|
|
|
8809
8815
|
|
|
8810
8816
|
@builtins.property
|
|
8811
8817
|
def method(self) -> builtins.str:
|
|
8812
|
-
'''
|
|
8818
|
+
'''The method used for the context enrichment strategy.
|
|
8813
8819
|
|
|
8814
8820
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-enrichmentstrategyconfiguration.html#cfn-bedrock-datasource-enrichmentstrategyconfiguration-method
|
|
8815
8821
|
'''
|
|
@@ -10645,7 +10651,7 @@ class CfnDataSource(
|
|
|
10645
10651
|
'''Contains details about how to ingest the documents in a data source.
|
|
10646
10652
|
|
|
10647
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.
|
|
10648
|
-
:param context_enrichment_configuration:
|
|
10654
|
+
:param context_enrichment_configuration: The context enrichment configuration used for ingestion of the data into the vector store.
|
|
10649
10655
|
:param custom_transformation_configuration: A custom document transformer for parsed data source documents.
|
|
10650
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.
|
|
10651
10657
|
|
|
@@ -10757,7 +10763,7 @@ class CfnDataSource(
|
|
|
10757
10763
|
def context_enrichment_configuration(
|
|
10758
10764
|
self,
|
|
10759
10765
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataSource.ContextEnrichmentConfigurationProperty"]]:
|
|
10760
|
-
'''
|
|
10766
|
+
'''The context enrichment configuration used for ingestion of the data into the vector store.
|
|
10761
10767
|
|
|
10762
10768
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-vectoringestionconfiguration.html#cfn-bedrock-datasource-vectoringestionconfiguration-contextenrichmentconfiguration
|
|
10763
10769
|
'''
|
|
@@ -10830,8 +10836,8 @@ class CfnDataSource(
|
|
|
10830
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.
|
|
10831
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.
|
|
10832
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".
|
|
10833
|
-
:param user_agent:
|
|
10834
|
-
:param user_agent_header: The
|
|
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.
|
|
10835
10841
|
|
|
10836
10842
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html
|
|
10837
10843
|
:exampleMetadata: fixture=_generated
|
|
@@ -10922,7 +10928,7 @@ class CfnDataSource(
|
|
|
10922
10928
|
|
|
10923
10929
|
@builtins.property
|
|
10924
10930
|
def user_agent(self) -> typing.Optional[builtins.str]:
|
|
10925
|
-
'''
|
|
10931
|
+
'''Returns the user agent suffix for your web crawler.
|
|
10926
10932
|
|
|
10927
10933
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-useragent
|
|
10928
10934
|
'''
|
|
@@ -10931,7 +10937,9 @@ class CfnDataSource(
|
|
|
10931
10937
|
|
|
10932
10938
|
@builtins.property
|
|
10933
10939
|
def user_agent_header(self) -> typing.Optional[builtins.str]:
|
|
10934
|
-
'''
|
|
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.
|
|
10935
10943
|
|
|
10936
10944
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-useragentheader
|
|
10937
10945
|
'''
|
|
@@ -10965,7 +10973,7 @@ class CfnDataSource(
|
|
|
10965
10973
|
|
|
10966
10974
|
You should be authorized to crawl the URLs.
|
|
10967
10975
|
|
|
10968
|
-
:param max_pages:
|
|
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.
|
|
10969
10977
|
:param rate_limit: The max rate at which pages are crawled, up to 300 per minute per host.
|
|
10970
10978
|
|
|
10971
10979
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerlimits.html
|
|
@@ -10994,7 +11002,9 @@ class CfnDataSource(
|
|
|
10994
11002
|
|
|
10995
11003
|
@builtins.property
|
|
10996
11004
|
def max_pages(self) -> typing.Optional[jsii.Number]:
|
|
10997
|
-
'''
|
|
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.
|
|
10998
11008
|
|
|
10999
11009
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerlimits.html#cfn-bedrock-datasource-webcrawlerlimits-maxpages
|
|
11000
11010
|
'''
|
|
@@ -18999,7 +19009,11 @@ class CfnGuardrail(
|
|
|
18999
19009
|
filters_config=[bedrock.CfnGuardrail.ContentFilterConfigProperty(
|
|
19000
19010
|
input_strength="inputStrength",
|
|
19001
19011
|
output_strength="outputStrength",
|
|
19002
|
-
type="type"
|
|
19012
|
+
type="type",
|
|
19013
|
+
|
|
19014
|
+
# the properties below are optional
|
|
19015
|
+
input_modalities=["inputModalities"],
|
|
19016
|
+
output_modalities=["outputModalities"]
|
|
19003
19017
|
)]
|
|
19004
19018
|
),
|
|
19005
19019
|
contextual_grounding_policy_config=bedrock.CfnGuardrail.ContextualGroundingPolicyConfigProperty(
|
|
@@ -19395,6 +19409,8 @@ class CfnGuardrail(
|
|
|
19395
19409
|
"input_strength": "inputStrength",
|
|
19396
19410
|
"output_strength": "outputStrength",
|
|
19397
19411
|
"type": "type",
|
|
19412
|
+
"input_modalities": "inputModalities",
|
|
19413
|
+
"output_modalities": "outputModalities",
|
|
19398
19414
|
},
|
|
19399
19415
|
)
|
|
19400
19416
|
class ContentFilterConfigProperty:
|
|
@@ -19404,6 +19420,8 @@ class CfnGuardrail(
|
|
|
19404
19420
|
input_strength: builtins.str,
|
|
19405
19421
|
output_strength: builtins.str,
|
|
19406
19422
|
type: builtins.str,
|
|
19423
|
+
input_modalities: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
19424
|
+
output_modalities: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
19407
19425
|
) -> None:
|
|
19408
19426
|
'''Contains filter strengths for harmful content.
|
|
19409
19427
|
|
|
@@ -19421,6 +19439,8 @@ class CfnGuardrail(
|
|
|
19421
19439
|
:param input_strength: The strength of the content filter to apply to prompts. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
|
|
19422
19440
|
:param output_strength: The strength of the content filter to apply to model responses. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
|
|
19423
19441
|
:param type: The harmful category that the content filter is applied to.
|
|
19442
|
+
:param input_modalities: List of modalities.
|
|
19443
|
+
:param output_modalities: List of modalities.
|
|
19424
19444
|
|
|
19425
19445
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html
|
|
19426
19446
|
:exampleMetadata: fixture=_generated
|
|
@@ -19434,7 +19454,11 @@ class CfnGuardrail(
|
|
|
19434
19454
|
content_filter_config_property = bedrock.CfnGuardrail.ContentFilterConfigProperty(
|
|
19435
19455
|
input_strength="inputStrength",
|
|
19436
19456
|
output_strength="outputStrength",
|
|
19437
|
-
type="type"
|
|
19457
|
+
type="type",
|
|
19458
|
+
|
|
19459
|
+
# the properties below are optional
|
|
19460
|
+
input_modalities=["inputModalities"],
|
|
19461
|
+
output_modalities=["outputModalities"]
|
|
19438
19462
|
)
|
|
19439
19463
|
'''
|
|
19440
19464
|
if __debug__:
|
|
@@ -19442,11 +19466,17 @@ class CfnGuardrail(
|
|
|
19442
19466
|
check_type(argname="argument input_strength", value=input_strength, expected_type=type_hints["input_strength"])
|
|
19443
19467
|
check_type(argname="argument output_strength", value=output_strength, expected_type=type_hints["output_strength"])
|
|
19444
19468
|
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
19469
|
+
check_type(argname="argument input_modalities", value=input_modalities, expected_type=type_hints["input_modalities"])
|
|
19470
|
+
check_type(argname="argument output_modalities", value=output_modalities, expected_type=type_hints["output_modalities"])
|
|
19445
19471
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
19446
19472
|
"input_strength": input_strength,
|
|
19447
19473
|
"output_strength": output_strength,
|
|
19448
19474
|
"type": type,
|
|
19449
19475
|
}
|
|
19476
|
+
if input_modalities is not None:
|
|
19477
|
+
self._values["input_modalities"] = input_modalities
|
|
19478
|
+
if output_modalities is not None:
|
|
19479
|
+
self._values["output_modalities"] = output_modalities
|
|
19450
19480
|
|
|
19451
19481
|
@builtins.property
|
|
19452
19482
|
def input_strength(self) -> builtins.str:
|
|
@@ -19482,6 +19512,24 @@ class CfnGuardrail(
|
|
|
19482
19512
|
assert result is not None, "Required property 'type' is missing"
|
|
19483
19513
|
return typing.cast(builtins.str, result)
|
|
19484
19514
|
|
|
19515
|
+
@builtins.property
|
|
19516
|
+
def input_modalities(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
19517
|
+
'''List of modalities.
|
|
19518
|
+
|
|
19519
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html#cfn-bedrock-guardrail-contentfilterconfig-inputmodalities
|
|
19520
|
+
'''
|
|
19521
|
+
result = self._values.get("input_modalities")
|
|
19522
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
19523
|
+
|
|
19524
|
+
@builtins.property
|
|
19525
|
+
def output_modalities(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
19526
|
+
'''List of modalities.
|
|
19527
|
+
|
|
19528
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html#cfn-bedrock-guardrail-contentfilterconfig-outputmodalities
|
|
19529
|
+
'''
|
|
19530
|
+
result = self._values.get("output_modalities")
|
|
19531
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
19532
|
+
|
|
19485
19533
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
19486
19534
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
19487
19535
|
|
|
@@ -19521,7 +19569,11 @@ class CfnGuardrail(
|
|
|
19521
19569
|
filters_config=[bedrock.CfnGuardrail.ContentFilterConfigProperty(
|
|
19522
19570
|
input_strength="inputStrength",
|
|
19523
19571
|
output_strength="outputStrength",
|
|
19524
|
-
type="type"
|
|
19572
|
+
type="type",
|
|
19573
|
+
|
|
19574
|
+
# the properties below are optional
|
|
19575
|
+
input_modalities=["inputModalities"],
|
|
19576
|
+
output_modalities=["outputModalities"]
|
|
19525
19577
|
)]
|
|
19526
19578
|
)
|
|
19527
19579
|
'''
|
|
@@ -20509,7 +20561,11 @@ class CfnGuardrailProps:
|
|
|
20509
20561
|
filters_config=[bedrock.CfnGuardrail.ContentFilterConfigProperty(
|
|
20510
20562
|
input_strength="inputStrength",
|
|
20511
20563
|
output_strength="outputStrength",
|
|
20512
|
-
type="type"
|
|
20564
|
+
type="type",
|
|
20565
|
+
|
|
20566
|
+
# the properties below are optional
|
|
20567
|
+
input_modalities=["inputModalities"],
|
|
20568
|
+
output_modalities=["outputModalities"]
|
|
20513
20569
|
)]
|
|
20514
20570
|
),
|
|
20515
20571
|
contextual_grounding_policy_config=bedrock.CfnGuardrail.ContextualGroundingPolicyConfigProperty(
|
|
@@ -21074,6 +21130,28 @@ class CfnKnowledgeBase(
|
|
|
21074
21130
|
type="type",
|
|
21075
21131
|
|
|
21076
21132
|
# the properties below are optional
|
|
21133
|
+
mongo_db_atlas_configuration=bedrock.CfnKnowledgeBase.MongoDbAtlasConfigurationProperty(
|
|
21134
|
+
collection_name="collectionName",
|
|
21135
|
+
credentials_secret_arn="credentialsSecretArn",
|
|
21136
|
+
database_name="databaseName",
|
|
21137
|
+
endpoint="endpoint",
|
|
21138
|
+
field_mapping=bedrock.CfnKnowledgeBase.MongoDbAtlasFieldMappingProperty(
|
|
21139
|
+
metadata_field="metadataField",
|
|
21140
|
+
text_field="textField",
|
|
21141
|
+
vector_field="vectorField"
|
|
21142
|
+
),
|
|
21143
|
+
vector_index_name="vectorIndexName",
|
|
21144
|
+
|
|
21145
|
+
# the properties below are optional
|
|
21146
|
+
endpoint_service_name="endpointServiceName"
|
|
21147
|
+
),
|
|
21148
|
+
neptune_analytics_configuration=bedrock.CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty(
|
|
21149
|
+
field_mapping=bedrock.CfnKnowledgeBase.NeptuneAnalyticsFieldMappingProperty(
|
|
21150
|
+
metadata_field="metadataField",
|
|
21151
|
+
text_field="textField"
|
|
21152
|
+
),
|
|
21153
|
+
graph_arn="graphArn"
|
|
21154
|
+
),
|
|
21077
21155
|
opensearch_serverless_configuration=bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty(
|
|
21078
21156
|
collection_arn="collectionArn",
|
|
21079
21157
|
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty(
|
|
@@ -21801,6 +21879,411 @@ class CfnKnowledgeBase(
|
|
|
21801
21879
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
21802
21880
|
)
|
|
21803
21881
|
|
|
21882
|
+
@jsii.data_type(
|
|
21883
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.MongoDbAtlasConfigurationProperty",
|
|
21884
|
+
jsii_struct_bases=[],
|
|
21885
|
+
name_mapping={
|
|
21886
|
+
"collection_name": "collectionName",
|
|
21887
|
+
"credentials_secret_arn": "credentialsSecretArn",
|
|
21888
|
+
"database_name": "databaseName",
|
|
21889
|
+
"endpoint": "endpoint",
|
|
21890
|
+
"field_mapping": "fieldMapping",
|
|
21891
|
+
"vector_index_name": "vectorIndexName",
|
|
21892
|
+
"endpoint_service_name": "endpointServiceName",
|
|
21893
|
+
},
|
|
21894
|
+
)
|
|
21895
|
+
class MongoDbAtlasConfigurationProperty:
|
|
21896
|
+
def __init__(
|
|
21897
|
+
self,
|
|
21898
|
+
*,
|
|
21899
|
+
collection_name: builtins.str,
|
|
21900
|
+
credentials_secret_arn: builtins.str,
|
|
21901
|
+
database_name: builtins.str,
|
|
21902
|
+
endpoint: builtins.str,
|
|
21903
|
+
field_mapping: typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.MongoDbAtlasFieldMappingProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
21904
|
+
vector_index_name: builtins.str,
|
|
21905
|
+
endpoint_service_name: typing.Optional[builtins.str] = None,
|
|
21906
|
+
) -> None:
|
|
21907
|
+
'''Contains details about the storage configuration of the knowledge base in MongoDB Atlas.
|
|
21908
|
+
|
|
21909
|
+
:param collection_name: The collection name of the knowledge base in MongoDB Atlas.
|
|
21910
|
+
:param credentials_secret_arn: The Amazon Resource Name (ARN) of the secret that you created in AWS Secrets Manager that contains user credentials for your MongoDB Atlas cluster.
|
|
21911
|
+
:param database_name: The database name in your MongoDB Atlas cluster for your knowledge base.
|
|
21912
|
+
:param endpoint: The endpoint URL of your MongoDB Atlas cluster for your knowledge base.
|
|
21913
|
+
:param field_mapping: Contains the names of the fields to which to map information about the vector store.
|
|
21914
|
+
:param vector_index_name: The name of the MongoDB Atlas vector search index.
|
|
21915
|
+
:param endpoint_service_name: The name of the VPC endpoint service in your account that is connected to your MongoDB Atlas cluster.
|
|
21916
|
+
|
|
21917
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasconfiguration.html
|
|
21918
|
+
:exampleMetadata: fixture=_generated
|
|
21919
|
+
|
|
21920
|
+
Example::
|
|
21921
|
+
|
|
21922
|
+
# The code below shows an example of how to instantiate this type.
|
|
21923
|
+
# The values are placeholders you should change.
|
|
21924
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
21925
|
+
|
|
21926
|
+
mongo_db_atlas_configuration_property = bedrock.CfnKnowledgeBase.MongoDbAtlasConfigurationProperty(
|
|
21927
|
+
collection_name="collectionName",
|
|
21928
|
+
credentials_secret_arn="credentialsSecretArn",
|
|
21929
|
+
database_name="databaseName",
|
|
21930
|
+
endpoint="endpoint",
|
|
21931
|
+
field_mapping=bedrock.CfnKnowledgeBase.MongoDbAtlasFieldMappingProperty(
|
|
21932
|
+
metadata_field="metadataField",
|
|
21933
|
+
text_field="textField",
|
|
21934
|
+
vector_field="vectorField"
|
|
21935
|
+
),
|
|
21936
|
+
vector_index_name="vectorIndexName",
|
|
21937
|
+
|
|
21938
|
+
# the properties below are optional
|
|
21939
|
+
endpoint_service_name="endpointServiceName"
|
|
21940
|
+
)
|
|
21941
|
+
'''
|
|
21942
|
+
if __debug__:
|
|
21943
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e9aab84c59bbcca474a92e8e14d567a83b0356b2c00acd482f24dc540e68e9eb)
|
|
21944
|
+
check_type(argname="argument collection_name", value=collection_name, expected_type=type_hints["collection_name"])
|
|
21945
|
+
check_type(argname="argument credentials_secret_arn", value=credentials_secret_arn, expected_type=type_hints["credentials_secret_arn"])
|
|
21946
|
+
check_type(argname="argument database_name", value=database_name, expected_type=type_hints["database_name"])
|
|
21947
|
+
check_type(argname="argument endpoint", value=endpoint, expected_type=type_hints["endpoint"])
|
|
21948
|
+
check_type(argname="argument field_mapping", value=field_mapping, expected_type=type_hints["field_mapping"])
|
|
21949
|
+
check_type(argname="argument vector_index_name", value=vector_index_name, expected_type=type_hints["vector_index_name"])
|
|
21950
|
+
check_type(argname="argument endpoint_service_name", value=endpoint_service_name, expected_type=type_hints["endpoint_service_name"])
|
|
21951
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
21952
|
+
"collection_name": collection_name,
|
|
21953
|
+
"credentials_secret_arn": credentials_secret_arn,
|
|
21954
|
+
"database_name": database_name,
|
|
21955
|
+
"endpoint": endpoint,
|
|
21956
|
+
"field_mapping": field_mapping,
|
|
21957
|
+
"vector_index_name": vector_index_name,
|
|
21958
|
+
}
|
|
21959
|
+
if endpoint_service_name is not None:
|
|
21960
|
+
self._values["endpoint_service_name"] = endpoint_service_name
|
|
21961
|
+
|
|
21962
|
+
@builtins.property
|
|
21963
|
+
def collection_name(self) -> builtins.str:
|
|
21964
|
+
'''The collection name of the knowledge base in MongoDB Atlas.
|
|
21965
|
+
|
|
21966
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasconfiguration.html#cfn-bedrock-knowledgebase-mongodbatlasconfiguration-collectionname
|
|
21967
|
+
'''
|
|
21968
|
+
result = self._values.get("collection_name")
|
|
21969
|
+
assert result is not None, "Required property 'collection_name' is missing"
|
|
21970
|
+
return typing.cast(builtins.str, result)
|
|
21971
|
+
|
|
21972
|
+
@builtins.property
|
|
21973
|
+
def credentials_secret_arn(self) -> builtins.str:
|
|
21974
|
+
'''The Amazon Resource Name (ARN) of the secret that you created in AWS Secrets Manager that contains user credentials for your MongoDB Atlas cluster.
|
|
21975
|
+
|
|
21976
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasconfiguration.html#cfn-bedrock-knowledgebase-mongodbatlasconfiguration-credentialssecretarn
|
|
21977
|
+
'''
|
|
21978
|
+
result = self._values.get("credentials_secret_arn")
|
|
21979
|
+
assert result is not None, "Required property 'credentials_secret_arn' is missing"
|
|
21980
|
+
return typing.cast(builtins.str, result)
|
|
21981
|
+
|
|
21982
|
+
@builtins.property
|
|
21983
|
+
def database_name(self) -> builtins.str:
|
|
21984
|
+
'''The database name in your MongoDB Atlas cluster for your knowledge base.
|
|
21985
|
+
|
|
21986
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasconfiguration.html#cfn-bedrock-knowledgebase-mongodbatlasconfiguration-databasename
|
|
21987
|
+
'''
|
|
21988
|
+
result = self._values.get("database_name")
|
|
21989
|
+
assert result is not None, "Required property 'database_name' is missing"
|
|
21990
|
+
return typing.cast(builtins.str, result)
|
|
21991
|
+
|
|
21992
|
+
@builtins.property
|
|
21993
|
+
def endpoint(self) -> builtins.str:
|
|
21994
|
+
'''The endpoint URL of your MongoDB Atlas cluster for your knowledge base.
|
|
21995
|
+
|
|
21996
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasconfiguration.html#cfn-bedrock-knowledgebase-mongodbatlasconfiguration-endpoint
|
|
21997
|
+
'''
|
|
21998
|
+
result = self._values.get("endpoint")
|
|
21999
|
+
assert result is not None, "Required property 'endpoint' is missing"
|
|
22000
|
+
return typing.cast(builtins.str, result)
|
|
22001
|
+
|
|
22002
|
+
@builtins.property
|
|
22003
|
+
def field_mapping(
|
|
22004
|
+
self,
|
|
22005
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.MongoDbAtlasFieldMappingProperty"]:
|
|
22006
|
+
'''Contains the names of the fields to which to map information about the vector store.
|
|
22007
|
+
|
|
22008
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasconfiguration.html#cfn-bedrock-knowledgebase-mongodbatlasconfiguration-fieldmapping
|
|
22009
|
+
'''
|
|
22010
|
+
result = self._values.get("field_mapping")
|
|
22011
|
+
assert result is not None, "Required property 'field_mapping' is missing"
|
|
22012
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.MongoDbAtlasFieldMappingProperty"], result)
|
|
22013
|
+
|
|
22014
|
+
@builtins.property
|
|
22015
|
+
def vector_index_name(self) -> builtins.str:
|
|
22016
|
+
'''The name of the MongoDB Atlas vector search index.
|
|
22017
|
+
|
|
22018
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasconfiguration.html#cfn-bedrock-knowledgebase-mongodbatlasconfiguration-vectorindexname
|
|
22019
|
+
'''
|
|
22020
|
+
result = self._values.get("vector_index_name")
|
|
22021
|
+
assert result is not None, "Required property 'vector_index_name' is missing"
|
|
22022
|
+
return typing.cast(builtins.str, result)
|
|
22023
|
+
|
|
22024
|
+
@builtins.property
|
|
22025
|
+
def endpoint_service_name(self) -> typing.Optional[builtins.str]:
|
|
22026
|
+
'''The name of the VPC endpoint service in your account that is connected to your MongoDB Atlas cluster.
|
|
22027
|
+
|
|
22028
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasconfiguration.html#cfn-bedrock-knowledgebase-mongodbatlasconfiguration-endpointservicename
|
|
22029
|
+
'''
|
|
22030
|
+
result = self._values.get("endpoint_service_name")
|
|
22031
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
22032
|
+
|
|
22033
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
22034
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
22035
|
+
|
|
22036
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
22037
|
+
return not (rhs == self)
|
|
22038
|
+
|
|
22039
|
+
def __repr__(self) -> str:
|
|
22040
|
+
return "MongoDbAtlasConfigurationProperty(%s)" % ", ".join(
|
|
22041
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
22042
|
+
)
|
|
22043
|
+
|
|
22044
|
+
@jsii.data_type(
|
|
22045
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.MongoDbAtlasFieldMappingProperty",
|
|
22046
|
+
jsii_struct_bases=[],
|
|
22047
|
+
name_mapping={
|
|
22048
|
+
"metadata_field": "metadataField",
|
|
22049
|
+
"text_field": "textField",
|
|
22050
|
+
"vector_field": "vectorField",
|
|
22051
|
+
},
|
|
22052
|
+
)
|
|
22053
|
+
class MongoDbAtlasFieldMappingProperty:
|
|
22054
|
+
def __init__(
|
|
22055
|
+
self,
|
|
22056
|
+
*,
|
|
22057
|
+
metadata_field: builtins.str,
|
|
22058
|
+
text_field: builtins.str,
|
|
22059
|
+
vector_field: builtins.str,
|
|
22060
|
+
) -> None:
|
|
22061
|
+
'''Contains the names of the fields to which to map information about the vector store.
|
|
22062
|
+
|
|
22063
|
+
:param metadata_field: The name of the field in which Amazon Bedrock stores metadata about the vector store.
|
|
22064
|
+
:param text_field: The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
|
|
22065
|
+
:param vector_field: The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
|
|
22066
|
+
|
|
22067
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasfieldmapping.html
|
|
22068
|
+
:exampleMetadata: fixture=_generated
|
|
22069
|
+
|
|
22070
|
+
Example::
|
|
22071
|
+
|
|
22072
|
+
# The code below shows an example of how to instantiate this type.
|
|
22073
|
+
# The values are placeholders you should change.
|
|
22074
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
22075
|
+
|
|
22076
|
+
mongo_db_atlas_field_mapping_property = bedrock.CfnKnowledgeBase.MongoDbAtlasFieldMappingProperty(
|
|
22077
|
+
metadata_field="metadataField",
|
|
22078
|
+
text_field="textField",
|
|
22079
|
+
vector_field="vectorField"
|
|
22080
|
+
)
|
|
22081
|
+
'''
|
|
22082
|
+
if __debug__:
|
|
22083
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f282a9abca5decd69046535588b0259c474f2c6fc5ff2d8dc73f747b8db614e8)
|
|
22084
|
+
check_type(argname="argument metadata_field", value=metadata_field, expected_type=type_hints["metadata_field"])
|
|
22085
|
+
check_type(argname="argument text_field", value=text_field, expected_type=type_hints["text_field"])
|
|
22086
|
+
check_type(argname="argument vector_field", value=vector_field, expected_type=type_hints["vector_field"])
|
|
22087
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
22088
|
+
"metadata_field": metadata_field,
|
|
22089
|
+
"text_field": text_field,
|
|
22090
|
+
"vector_field": vector_field,
|
|
22091
|
+
}
|
|
22092
|
+
|
|
22093
|
+
@builtins.property
|
|
22094
|
+
def metadata_field(self) -> builtins.str:
|
|
22095
|
+
'''The name of the field in which Amazon Bedrock stores metadata about the vector store.
|
|
22096
|
+
|
|
22097
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasfieldmapping.html#cfn-bedrock-knowledgebase-mongodbatlasfieldmapping-metadatafield
|
|
22098
|
+
'''
|
|
22099
|
+
result = self._values.get("metadata_field")
|
|
22100
|
+
assert result is not None, "Required property 'metadata_field' is missing"
|
|
22101
|
+
return typing.cast(builtins.str, result)
|
|
22102
|
+
|
|
22103
|
+
@builtins.property
|
|
22104
|
+
def text_field(self) -> builtins.str:
|
|
22105
|
+
'''The name of the field in which Amazon Bedrock stores the raw text from your data.
|
|
22106
|
+
|
|
22107
|
+
The text is split according to the chunking strategy you choose.
|
|
22108
|
+
|
|
22109
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasfieldmapping.html#cfn-bedrock-knowledgebase-mongodbatlasfieldmapping-textfield
|
|
22110
|
+
'''
|
|
22111
|
+
result = self._values.get("text_field")
|
|
22112
|
+
assert result is not None, "Required property 'text_field' is missing"
|
|
22113
|
+
return typing.cast(builtins.str, result)
|
|
22114
|
+
|
|
22115
|
+
@builtins.property
|
|
22116
|
+
def vector_field(self) -> builtins.str:
|
|
22117
|
+
'''The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
|
|
22118
|
+
|
|
22119
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasfieldmapping.html#cfn-bedrock-knowledgebase-mongodbatlasfieldmapping-vectorfield
|
|
22120
|
+
'''
|
|
22121
|
+
result = self._values.get("vector_field")
|
|
22122
|
+
assert result is not None, "Required property 'vector_field' is missing"
|
|
22123
|
+
return typing.cast(builtins.str, result)
|
|
22124
|
+
|
|
22125
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
22126
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
22127
|
+
|
|
22128
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
22129
|
+
return not (rhs == self)
|
|
22130
|
+
|
|
22131
|
+
def __repr__(self) -> str:
|
|
22132
|
+
return "MongoDbAtlasFieldMappingProperty(%s)" % ", ".join(
|
|
22133
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
22134
|
+
)
|
|
22135
|
+
|
|
22136
|
+
@jsii.data_type(
|
|
22137
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty",
|
|
22138
|
+
jsii_struct_bases=[],
|
|
22139
|
+
name_mapping={"field_mapping": "fieldMapping", "graph_arn": "graphArn"},
|
|
22140
|
+
)
|
|
22141
|
+
class NeptuneAnalyticsConfigurationProperty:
|
|
22142
|
+
def __init__(
|
|
22143
|
+
self,
|
|
22144
|
+
*,
|
|
22145
|
+
field_mapping: typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.NeptuneAnalyticsFieldMappingProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
22146
|
+
graph_arn: builtins.str,
|
|
22147
|
+
) -> None:
|
|
22148
|
+
'''Contains details about the storage configuration of the knowledge base in Amazon Neptune Analytics.
|
|
22149
|
+
|
|
22150
|
+
For more information, see `Create a vector index in Amazon Neptune Analytics <https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-neptune.html>`_ .
|
|
22151
|
+
|
|
22152
|
+
:param field_mapping: Contains the names of the fields to which to map information about the vector store.
|
|
22153
|
+
:param graph_arn: The Amazon Resource Name (ARN) of the Neptune Analytics vector store.
|
|
22154
|
+
|
|
22155
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-neptuneanalyticsconfiguration.html
|
|
22156
|
+
:exampleMetadata: fixture=_generated
|
|
22157
|
+
|
|
22158
|
+
Example::
|
|
22159
|
+
|
|
22160
|
+
# The code below shows an example of how to instantiate this type.
|
|
22161
|
+
# The values are placeholders you should change.
|
|
22162
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
22163
|
+
|
|
22164
|
+
neptune_analytics_configuration_property = bedrock.CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty(
|
|
22165
|
+
field_mapping=bedrock.CfnKnowledgeBase.NeptuneAnalyticsFieldMappingProperty(
|
|
22166
|
+
metadata_field="metadataField",
|
|
22167
|
+
text_field="textField"
|
|
22168
|
+
),
|
|
22169
|
+
graph_arn="graphArn"
|
|
22170
|
+
)
|
|
22171
|
+
'''
|
|
22172
|
+
if __debug__:
|
|
22173
|
+
type_hints = typing.get_type_hints(_typecheckingstub__10a48ae87585ff3681b23b0ef2d755d1b9f2c138e4661f1417b3e939b8fcb5aa)
|
|
22174
|
+
check_type(argname="argument field_mapping", value=field_mapping, expected_type=type_hints["field_mapping"])
|
|
22175
|
+
check_type(argname="argument graph_arn", value=graph_arn, expected_type=type_hints["graph_arn"])
|
|
22176
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
22177
|
+
"field_mapping": field_mapping,
|
|
22178
|
+
"graph_arn": graph_arn,
|
|
22179
|
+
}
|
|
22180
|
+
|
|
22181
|
+
@builtins.property
|
|
22182
|
+
def field_mapping(
|
|
22183
|
+
self,
|
|
22184
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.NeptuneAnalyticsFieldMappingProperty"]:
|
|
22185
|
+
'''Contains the names of the fields to which to map information about the vector store.
|
|
22186
|
+
|
|
22187
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-neptuneanalyticsconfiguration.html#cfn-bedrock-knowledgebase-neptuneanalyticsconfiguration-fieldmapping
|
|
22188
|
+
'''
|
|
22189
|
+
result = self._values.get("field_mapping")
|
|
22190
|
+
assert result is not None, "Required property 'field_mapping' is missing"
|
|
22191
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.NeptuneAnalyticsFieldMappingProperty"], result)
|
|
22192
|
+
|
|
22193
|
+
@builtins.property
|
|
22194
|
+
def graph_arn(self) -> builtins.str:
|
|
22195
|
+
'''The Amazon Resource Name (ARN) of the Neptune Analytics vector store.
|
|
22196
|
+
|
|
22197
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-neptuneanalyticsconfiguration.html#cfn-bedrock-knowledgebase-neptuneanalyticsconfiguration-grapharn
|
|
22198
|
+
'''
|
|
22199
|
+
result = self._values.get("graph_arn")
|
|
22200
|
+
assert result is not None, "Required property 'graph_arn' is missing"
|
|
22201
|
+
return typing.cast(builtins.str, result)
|
|
22202
|
+
|
|
22203
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
22204
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
22205
|
+
|
|
22206
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
22207
|
+
return not (rhs == self)
|
|
22208
|
+
|
|
22209
|
+
def __repr__(self) -> str:
|
|
22210
|
+
return "NeptuneAnalyticsConfigurationProperty(%s)" % ", ".join(
|
|
22211
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
22212
|
+
)
|
|
22213
|
+
|
|
22214
|
+
@jsii.data_type(
|
|
22215
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.NeptuneAnalyticsFieldMappingProperty",
|
|
22216
|
+
jsii_struct_bases=[],
|
|
22217
|
+
name_mapping={"metadata_field": "metadataField", "text_field": "textField"},
|
|
22218
|
+
)
|
|
22219
|
+
class NeptuneAnalyticsFieldMappingProperty:
|
|
22220
|
+
def __init__(
|
|
22221
|
+
self,
|
|
22222
|
+
*,
|
|
22223
|
+
metadata_field: builtins.str,
|
|
22224
|
+
text_field: builtins.str,
|
|
22225
|
+
) -> None:
|
|
22226
|
+
'''Contains the names of the fields to which to map information about the vector store.
|
|
22227
|
+
|
|
22228
|
+
:param metadata_field: The name of the field in which Amazon Bedrock stores metadata about the vector store.
|
|
22229
|
+
:param text_field: The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
|
|
22230
|
+
|
|
22231
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-neptuneanalyticsfieldmapping.html
|
|
22232
|
+
:exampleMetadata: fixture=_generated
|
|
22233
|
+
|
|
22234
|
+
Example::
|
|
22235
|
+
|
|
22236
|
+
# The code below shows an example of how to instantiate this type.
|
|
22237
|
+
# The values are placeholders you should change.
|
|
22238
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
22239
|
+
|
|
22240
|
+
neptune_analytics_field_mapping_property = bedrock.CfnKnowledgeBase.NeptuneAnalyticsFieldMappingProperty(
|
|
22241
|
+
metadata_field="metadataField",
|
|
22242
|
+
text_field="textField"
|
|
22243
|
+
)
|
|
22244
|
+
'''
|
|
22245
|
+
if __debug__:
|
|
22246
|
+
type_hints = typing.get_type_hints(_typecheckingstub__149760cb1c54680bfaffb4cbd878a103bd98758e30835dd86bdc5ae4a53edc8b)
|
|
22247
|
+
check_type(argname="argument metadata_field", value=metadata_field, expected_type=type_hints["metadata_field"])
|
|
22248
|
+
check_type(argname="argument text_field", value=text_field, expected_type=type_hints["text_field"])
|
|
22249
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
22250
|
+
"metadata_field": metadata_field,
|
|
22251
|
+
"text_field": text_field,
|
|
22252
|
+
}
|
|
22253
|
+
|
|
22254
|
+
@builtins.property
|
|
22255
|
+
def metadata_field(self) -> builtins.str:
|
|
22256
|
+
'''The name of the field in which Amazon Bedrock stores metadata about the vector store.
|
|
22257
|
+
|
|
22258
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-neptuneanalyticsfieldmapping.html#cfn-bedrock-knowledgebase-neptuneanalyticsfieldmapping-metadatafield
|
|
22259
|
+
'''
|
|
22260
|
+
result = self._values.get("metadata_field")
|
|
22261
|
+
assert result is not None, "Required property 'metadata_field' is missing"
|
|
22262
|
+
return typing.cast(builtins.str, result)
|
|
22263
|
+
|
|
22264
|
+
@builtins.property
|
|
22265
|
+
def text_field(self) -> builtins.str:
|
|
22266
|
+
'''The name of the field in which Amazon Bedrock stores the raw text from your data.
|
|
22267
|
+
|
|
22268
|
+
The text is split according to the chunking strategy you choose.
|
|
22269
|
+
|
|
22270
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-neptuneanalyticsfieldmapping.html#cfn-bedrock-knowledgebase-neptuneanalyticsfieldmapping-textfield
|
|
22271
|
+
'''
|
|
22272
|
+
result = self._values.get("text_field")
|
|
22273
|
+
assert result is not None, "Required property 'text_field' is missing"
|
|
22274
|
+
return typing.cast(builtins.str, result)
|
|
22275
|
+
|
|
22276
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
22277
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
22278
|
+
|
|
22279
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
22280
|
+
return not (rhs == self)
|
|
22281
|
+
|
|
22282
|
+
def __repr__(self) -> str:
|
|
22283
|
+
return "NeptuneAnalyticsFieldMappingProperty(%s)" % ", ".join(
|
|
22284
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
22285
|
+
)
|
|
22286
|
+
|
|
21804
22287
|
@jsii.data_type(
|
|
21805
22288
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty",
|
|
21806
22289
|
jsii_struct_bases=[],
|
|
@@ -23814,6 +24297,8 @@ class CfnKnowledgeBase(
|
|
|
23814
24297
|
jsii_struct_bases=[],
|
|
23815
24298
|
name_mapping={
|
|
23816
24299
|
"type": "type",
|
|
24300
|
+
"mongo_db_atlas_configuration": "mongoDbAtlasConfiguration",
|
|
24301
|
+
"neptune_analytics_configuration": "neptuneAnalyticsConfiguration",
|
|
23817
24302
|
"opensearch_serverless_configuration": "opensearchServerlessConfiguration",
|
|
23818
24303
|
"pinecone_configuration": "pineconeConfiguration",
|
|
23819
24304
|
"rds_configuration": "rdsConfiguration",
|
|
@@ -23824,6 +24309,8 @@ class CfnKnowledgeBase(
|
|
|
23824
24309
|
self,
|
|
23825
24310
|
*,
|
|
23826
24311
|
type: builtins.str,
|
|
24312
|
+
mongo_db_atlas_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.MongoDbAtlasConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24313
|
+
neptune_analytics_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23827
24314
|
opensearch_serverless_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23828
24315
|
pinecone_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.PineconeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23829
24316
|
rds_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.RdsConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -23831,6 +24318,8 @@ class CfnKnowledgeBase(
|
|
|
23831
24318
|
'''Contains the storage configuration of the knowledge base.
|
|
23832
24319
|
|
|
23833
24320
|
:param type: The vector store service in which the knowledge base is stored.
|
|
24321
|
+
:param mongo_db_atlas_configuration: Contains the storage configuration of the knowledge base in MongoDB Atlas.
|
|
24322
|
+
:param neptune_analytics_configuration: Contains details about the Neptune Analytics configuration of the knowledge base in Amazon Neptune. For more information, see `Create a vector index in Amazon Neptune Analytics. <https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-neptune.html>`_ .
|
|
23834
24323
|
:param opensearch_serverless_configuration: Contains the storage configuration of the knowledge base in Amazon OpenSearch Service.
|
|
23835
24324
|
:param pinecone_configuration: Contains the storage configuration of the knowledge base in Pinecone.
|
|
23836
24325
|
:param rds_configuration: Contains details about the storage configuration of the knowledge base in Amazon RDS. For more information, see `Create a vector index in Amazon RDS <https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-rds.html>`_ .
|
|
@@ -23848,6 +24337,28 @@ class CfnKnowledgeBase(
|
|
|
23848
24337
|
type="type",
|
|
23849
24338
|
|
|
23850
24339
|
# the properties below are optional
|
|
24340
|
+
mongo_db_atlas_configuration=bedrock.CfnKnowledgeBase.MongoDbAtlasConfigurationProperty(
|
|
24341
|
+
collection_name="collectionName",
|
|
24342
|
+
credentials_secret_arn="credentialsSecretArn",
|
|
24343
|
+
database_name="databaseName",
|
|
24344
|
+
endpoint="endpoint",
|
|
24345
|
+
field_mapping=bedrock.CfnKnowledgeBase.MongoDbAtlasFieldMappingProperty(
|
|
24346
|
+
metadata_field="metadataField",
|
|
24347
|
+
text_field="textField",
|
|
24348
|
+
vector_field="vectorField"
|
|
24349
|
+
),
|
|
24350
|
+
vector_index_name="vectorIndexName",
|
|
24351
|
+
|
|
24352
|
+
# the properties below are optional
|
|
24353
|
+
endpoint_service_name="endpointServiceName"
|
|
24354
|
+
),
|
|
24355
|
+
neptune_analytics_configuration=bedrock.CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty(
|
|
24356
|
+
field_mapping=bedrock.CfnKnowledgeBase.NeptuneAnalyticsFieldMappingProperty(
|
|
24357
|
+
metadata_field="metadataField",
|
|
24358
|
+
text_field="textField"
|
|
24359
|
+
),
|
|
24360
|
+
graph_arn="graphArn"
|
|
24361
|
+
),
|
|
23851
24362
|
opensearch_serverless_configuration=bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty(
|
|
23852
24363
|
collection_arn="collectionArn",
|
|
23853
24364
|
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty(
|
|
@@ -23885,12 +24396,18 @@ class CfnKnowledgeBase(
|
|
|
23885
24396
|
if __debug__:
|
|
23886
24397
|
type_hints = typing.get_type_hints(_typecheckingstub__fa4cccae88d65689f5f3cabcb8393a082af16eb90d7613332a03867c32272af4)
|
|
23887
24398
|
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
24399
|
+
check_type(argname="argument mongo_db_atlas_configuration", value=mongo_db_atlas_configuration, expected_type=type_hints["mongo_db_atlas_configuration"])
|
|
24400
|
+
check_type(argname="argument neptune_analytics_configuration", value=neptune_analytics_configuration, expected_type=type_hints["neptune_analytics_configuration"])
|
|
23888
24401
|
check_type(argname="argument opensearch_serverless_configuration", value=opensearch_serverless_configuration, expected_type=type_hints["opensearch_serverless_configuration"])
|
|
23889
24402
|
check_type(argname="argument pinecone_configuration", value=pinecone_configuration, expected_type=type_hints["pinecone_configuration"])
|
|
23890
24403
|
check_type(argname="argument rds_configuration", value=rds_configuration, expected_type=type_hints["rds_configuration"])
|
|
23891
24404
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
23892
24405
|
"type": type,
|
|
23893
24406
|
}
|
|
24407
|
+
if mongo_db_atlas_configuration is not None:
|
|
24408
|
+
self._values["mongo_db_atlas_configuration"] = mongo_db_atlas_configuration
|
|
24409
|
+
if neptune_analytics_configuration is not None:
|
|
24410
|
+
self._values["neptune_analytics_configuration"] = neptune_analytics_configuration
|
|
23894
24411
|
if opensearch_serverless_configuration is not None:
|
|
23895
24412
|
self._values["opensearch_serverless_configuration"] = opensearch_serverless_configuration
|
|
23896
24413
|
if pinecone_configuration is not None:
|
|
@@ -23908,6 +24425,30 @@ class CfnKnowledgeBase(
|
|
|
23908
24425
|
assert result is not None, "Required property 'type' is missing"
|
|
23909
24426
|
return typing.cast(builtins.str, result)
|
|
23910
24427
|
|
|
24428
|
+
@builtins.property
|
|
24429
|
+
def mongo_db_atlas_configuration(
|
|
24430
|
+
self,
|
|
24431
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.MongoDbAtlasConfigurationProperty"]]:
|
|
24432
|
+
'''Contains the storage configuration of the knowledge base in MongoDB Atlas.
|
|
24433
|
+
|
|
24434
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-storageconfiguration.html#cfn-bedrock-knowledgebase-storageconfiguration-mongodbatlasconfiguration
|
|
24435
|
+
'''
|
|
24436
|
+
result = self._values.get("mongo_db_atlas_configuration")
|
|
24437
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.MongoDbAtlasConfigurationProperty"]], result)
|
|
24438
|
+
|
|
24439
|
+
@builtins.property
|
|
24440
|
+
def neptune_analytics_configuration(
|
|
24441
|
+
self,
|
|
24442
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty"]]:
|
|
24443
|
+
'''Contains details about the Neptune Analytics configuration of the knowledge base in Amazon Neptune.
|
|
24444
|
+
|
|
24445
|
+
For more information, see `Create a vector index in Amazon Neptune Analytics. <https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-neptune.html>`_ .
|
|
24446
|
+
|
|
24447
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-storageconfiguration.html#cfn-bedrock-knowledgebase-storageconfiguration-neptuneanalyticsconfiguration
|
|
24448
|
+
'''
|
|
24449
|
+
result = self._values.get("neptune_analytics_configuration")
|
|
24450
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty"]], result)
|
|
24451
|
+
|
|
23911
24452
|
@builtins.property
|
|
23912
24453
|
def opensearch_serverless_configuration(
|
|
23913
24454
|
self,
|
|
@@ -24361,6 +24902,28 @@ class CfnKnowledgeBaseProps:
|
|
|
24361
24902
|
type="type",
|
|
24362
24903
|
|
|
24363
24904
|
# the properties below are optional
|
|
24905
|
+
mongo_db_atlas_configuration=bedrock.CfnKnowledgeBase.MongoDbAtlasConfigurationProperty(
|
|
24906
|
+
collection_name="collectionName",
|
|
24907
|
+
credentials_secret_arn="credentialsSecretArn",
|
|
24908
|
+
database_name="databaseName",
|
|
24909
|
+
endpoint="endpoint",
|
|
24910
|
+
field_mapping=bedrock.CfnKnowledgeBase.MongoDbAtlasFieldMappingProperty(
|
|
24911
|
+
metadata_field="metadataField",
|
|
24912
|
+
text_field="textField",
|
|
24913
|
+
vector_field="vectorField"
|
|
24914
|
+
),
|
|
24915
|
+
vector_index_name="vectorIndexName",
|
|
24916
|
+
|
|
24917
|
+
# the properties below are optional
|
|
24918
|
+
endpoint_service_name="endpointServiceName"
|
|
24919
|
+
),
|
|
24920
|
+
neptune_analytics_configuration=bedrock.CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty(
|
|
24921
|
+
field_mapping=bedrock.CfnKnowledgeBase.NeptuneAnalyticsFieldMappingProperty(
|
|
24922
|
+
metadata_field="metadataField",
|
|
24923
|
+
text_field="textField"
|
|
24924
|
+
),
|
|
24925
|
+
graph_arn="graphArn"
|
|
24926
|
+
),
|
|
24364
24927
|
opensearch_serverless_configuration=bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty(
|
|
24365
24928
|
collection_arn="collectionArn",
|
|
24366
24929
|
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty(
|
|
@@ -26032,7 +26595,7 @@ class CfnPrompt(
|
|
|
26032
26595
|
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
|
|
26033
26596
|
.. epigraph::
|
|
26034
26597
|
|
|
26035
|
-
This field is only supported by
|
|
26598
|
+
This field is only supported by Anthropic Claude 3 models.
|
|
26036
26599
|
|
|
26037
26600
|
:param name: The name of the tool that the model must request.
|
|
26038
26601
|
|
|
@@ -26383,7 +26946,7 @@ class CfnPrompt(
|
|
|
26383
26946
|
|
|
26384
26947
|
:param any: The model must request at least one tool (no text is generated).
|
|
26385
26948
|
:param auto: (Default). The Model automatically decides if a tool should be called or whether to generate text instead.
|
|
26386
|
-
:param tool: The Model must request the specified tool. Only supported by
|
|
26949
|
+
:param tool: The Model must request the specified tool. Only supported by Anthropic Claude 3 models.
|
|
26387
26950
|
|
|
26388
26951
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html
|
|
26389
26952
|
:exampleMetadata: fixture=_generated
|
|
@@ -26444,7 +27007,7 @@ class CfnPrompt(
|
|
|
26444
27007
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.SpecificToolChoiceProperty"]]:
|
|
26445
27008
|
'''The Model must request the specified tool.
|
|
26446
27009
|
|
|
26447
|
-
Only supported by
|
|
27010
|
+
Only supported by Anthropic Claude 3 models.
|
|
26448
27011
|
|
|
26449
27012
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html#cfn-bedrock-prompt-toolchoice-tool
|
|
26450
27013
|
'''
|
|
@@ -28465,7 +29028,7 @@ class CfnPromptVersion(
|
|
|
28465
29028
|
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
|
|
28466
29029
|
.. epigraph::
|
|
28467
29030
|
|
|
28468
|
-
This field is only supported by
|
|
29031
|
+
This field is only supported by Anthropic Claude 3 models.
|
|
28469
29032
|
|
|
28470
29033
|
:param name: The name of the tool that the model must request.
|
|
28471
29034
|
|
|
@@ -28707,7 +29270,7 @@ class CfnPromptVersion(
|
|
|
28707
29270
|
|
|
28708
29271
|
:param any: The model must request at least one tool (no text is generated).
|
|
28709
29272
|
:param auto: (Default). The Model automatically decides if a tool should be called or whether to generate text instead.
|
|
28710
|
-
:param tool: The Model must request the specified tool. Only supported by
|
|
29273
|
+
:param tool: The Model must request the specified tool. Only supported by Anthropic Claude 3 models.
|
|
28711
29274
|
|
|
28712
29275
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-toolchoice.html
|
|
28713
29276
|
:exampleMetadata: fixture=_generated
|
|
@@ -28768,7 +29331,7 @@ class CfnPromptVersion(
|
|
|
28768
29331
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.SpecificToolChoiceProperty"]]:
|
|
28769
29332
|
'''The Model must request the specified tool.
|
|
28770
29333
|
|
|
28771
|
-
Only supported by
|
|
29334
|
+
Only supported by Anthropic Claude 3 models.
|
|
28772
29335
|
|
|
28773
29336
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-toolchoice.html#cfn-bedrock-promptversion-toolchoice-tool
|
|
28774
29337
|
'''
|
|
@@ -32441,6 +33004,8 @@ def _typecheckingstub__e931f7f6b53869d60aab0ecda0e56f276982aaf3a1ee755be3434f26d
|
|
|
32441
33004
|
input_strength: builtins.str,
|
|
32442
33005
|
output_strength: builtins.str,
|
|
32443
33006
|
type: builtins.str,
|
|
33007
|
+
input_modalities: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
33008
|
+
output_modalities: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
32444
33009
|
) -> None:
|
|
32445
33010
|
"""Type checking stubs"""
|
|
32446
33011
|
pass
|
|
@@ -32693,6 +33258,44 @@ def _typecheckingstub__f2ca26f28cc4cf3a289e62f58643faf6a7d98ea3e55e7ff4f0f77530f
|
|
|
32693
33258
|
"""Type checking stubs"""
|
|
32694
33259
|
pass
|
|
32695
33260
|
|
|
33261
|
+
def _typecheckingstub__e9aab84c59bbcca474a92e8e14d567a83b0356b2c00acd482f24dc540e68e9eb(
|
|
33262
|
+
*,
|
|
33263
|
+
collection_name: builtins.str,
|
|
33264
|
+
credentials_secret_arn: builtins.str,
|
|
33265
|
+
database_name: builtins.str,
|
|
33266
|
+
endpoint: builtins.str,
|
|
33267
|
+
field_mapping: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.MongoDbAtlasFieldMappingProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
33268
|
+
vector_index_name: builtins.str,
|
|
33269
|
+
endpoint_service_name: typing.Optional[builtins.str] = None,
|
|
33270
|
+
) -> None:
|
|
33271
|
+
"""Type checking stubs"""
|
|
33272
|
+
pass
|
|
33273
|
+
|
|
33274
|
+
def _typecheckingstub__f282a9abca5decd69046535588b0259c474f2c6fc5ff2d8dc73f747b8db614e8(
|
|
33275
|
+
*,
|
|
33276
|
+
metadata_field: builtins.str,
|
|
33277
|
+
text_field: builtins.str,
|
|
33278
|
+
vector_field: builtins.str,
|
|
33279
|
+
) -> None:
|
|
33280
|
+
"""Type checking stubs"""
|
|
33281
|
+
pass
|
|
33282
|
+
|
|
33283
|
+
def _typecheckingstub__10a48ae87585ff3681b23b0ef2d755d1b9f2c138e4661f1417b3e939b8fcb5aa(
|
|
33284
|
+
*,
|
|
33285
|
+
field_mapping: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.NeptuneAnalyticsFieldMappingProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
33286
|
+
graph_arn: builtins.str,
|
|
33287
|
+
) -> None:
|
|
33288
|
+
"""Type checking stubs"""
|
|
33289
|
+
pass
|
|
33290
|
+
|
|
33291
|
+
def _typecheckingstub__149760cb1c54680bfaffb4cbd878a103bd98758e30835dd86bdc5ae4a53edc8b(
|
|
33292
|
+
*,
|
|
33293
|
+
metadata_field: builtins.str,
|
|
33294
|
+
text_field: builtins.str,
|
|
33295
|
+
) -> None:
|
|
33296
|
+
"""Type checking stubs"""
|
|
33297
|
+
pass
|
|
33298
|
+
|
|
32696
33299
|
def _typecheckingstub__ebf20de0b58d579ecbd2aeccf094bb6c29ae3627a2b4628485b0235e33626d24(
|
|
32697
33300
|
*,
|
|
32698
33301
|
collection_arn: builtins.str,
|
|
@@ -32877,6 +33480,8 @@ def _typecheckingstub__859a2388b8dce18b70af579c281f226f3fd2e03785d55377afa53e160
|
|
|
32877
33480
|
def _typecheckingstub__fa4cccae88d65689f5f3cabcb8393a082af16eb90d7613332a03867c32272af4(
|
|
32878
33481
|
*,
|
|
32879
33482
|
type: builtins.str,
|
|
33483
|
+
mongo_db_atlas_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.MongoDbAtlasConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
33484
|
+
neptune_analytics_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
32880
33485
|
opensearch_serverless_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
32881
33486
|
pinecone_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.PineconeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
32882
33487
|
rds_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.RdsConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|