aws-cdk-lib 2.187.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 +22 -3
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.187.0.jsii.tgz → aws-cdk-lib@2.188.0.jsii.tgz} +0 -0
- aws_cdk/aws_amplify/__init__.py +21 -9
- aws_cdk/aws_apigateway/__init__.py +25 -19
- aws_cdk/aws_apigatewayv2/__init__.py +88 -0
- aws_cdk/aws_appconfig/__init__.py +30 -14
- aws_cdk/aws_arczonalshift/__init__.py +4 -4
- aws_cdk/aws_bedrock/__init__.py +605 -10
- aws_cdk/aws_budgets/__init__.py +8 -8
- aws_cdk/aws_cassandra/__init__.py +3 -1
- aws_cdk/aws_ce/__init__.py +2 -2
- aws_cdk/aws_cloudformation/__init__.py +3 -3
- aws_cdk/aws_codebuild/__init__.py +23 -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_ec2/__init__.py +2091 -227
- aws_cdk/aws_eks/__init__.py +112 -10
- aws_cdk/aws_events_targets/__init__.py +136 -0
- aws_cdk/aws_gamelift/__init__.py +5 -5
- aws_cdk/aws_iam/__init__.py +6 -4
- aws_cdk/aws_identitystore/__init__.py +15 -13
- aws_cdk/aws_kinesisfirehose/__init__.py +38 -0
- aws_cdk/aws_lambda_event_sources/__init__.py +22 -22
- aws_cdk/aws_lex/__init__.py +21 -17
- aws_cdk/aws_logs/__init__.py +18 -0
- aws_cdk/aws_logs_destinations/__init__.py +146 -0
- aws_cdk/aws_notifications/__init__.py +4 -4
- aws_cdk/aws_omics/__init__.py +9 -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 +35 -22
- aws_cdk/aws_rds/__init__.py +84 -0
- aws_cdk/aws_route53/__init__.py +3 -3
- aws_cdk/aws_route53recoverycontrol/__init__.py +4 -6
- aws_cdk/aws_rum/__init__.py +13 -10
- aws_cdk/aws_s3/__init__.py +3 -6
- aws_cdk/aws_sagemaker/__init__.py +41 -0
- aws_cdk/aws_ssmincidents/__init__.py +10 -10
- aws_cdk/aws_systemsmanagersap/__init__.py +17 -7
- aws_cdk/aws_transfer/__init__.py +19 -10
- aws_cdk/aws_wafv2/__init__.py +80 -35
- aws_cdk/cx_api/__init__.py +23 -2
- aws_cdk/pipelines/__init__.py +32 -0
- {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/RECORD +53 -53
- {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -19009,7 +19009,11 @@ class CfnGuardrail(
|
|
|
19009
19009
|
filters_config=[bedrock.CfnGuardrail.ContentFilterConfigProperty(
|
|
19010
19010
|
input_strength="inputStrength",
|
|
19011
19011
|
output_strength="outputStrength",
|
|
19012
|
-
type="type"
|
|
19012
|
+
type="type",
|
|
19013
|
+
|
|
19014
|
+
# the properties below are optional
|
|
19015
|
+
input_modalities=["inputModalities"],
|
|
19016
|
+
output_modalities=["outputModalities"]
|
|
19013
19017
|
)]
|
|
19014
19018
|
),
|
|
19015
19019
|
contextual_grounding_policy_config=bedrock.CfnGuardrail.ContextualGroundingPolicyConfigProperty(
|
|
@@ -19405,6 +19409,8 @@ class CfnGuardrail(
|
|
|
19405
19409
|
"input_strength": "inputStrength",
|
|
19406
19410
|
"output_strength": "outputStrength",
|
|
19407
19411
|
"type": "type",
|
|
19412
|
+
"input_modalities": "inputModalities",
|
|
19413
|
+
"output_modalities": "outputModalities",
|
|
19408
19414
|
},
|
|
19409
19415
|
)
|
|
19410
19416
|
class ContentFilterConfigProperty:
|
|
@@ -19414,6 +19420,8 @@ class CfnGuardrail(
|
|
|
19414
19420
|
input_strength: builtins.str,
|
|
19415
19421
|
output_strength: builtins.str,
|
|
19416
19422
|
type: builtins.str,
|
|
19423
|
+
input_modalities: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
19424
|
+
output_modalities: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
19417
19425
|
) -> None:
|
|
19418
19426
|
'''Contains filter strengths for harmful content.
|
|
19419
19427
|
|
|
@@ -19431,6 +19439,8 @@ class CfnGuardrail(
|
|
|
19431
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.
|
|
19432
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.
|
|
19433
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.
|
|
19434
19444
|
|
|
19435
19445
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html
|
|
19436
19446
|
:exampleMetadata: fixture=_generated
|
|
@@ -19444,7 +19454,11 @@ class CfnGuardrail(
|
|
|
19444
19454
|
content_filter_config_property = bedrock.CfnGuardrail.ContentFilterConfigProperty(
|
|
19445
19455
|
input_strength="inputStrength",
|
|
19446
19456
|
output_strength="outputStrength",
|
|
19447
|
-
type="type"
|
|
19457
|
+
type="type",
|
|
19458
|
+
|
|
19459
|
+
# the properties below are optional
|
|
19460
|
+
input_modalities=["inputModalities"],
|
|
19461
|
+
output_modalities=["outputModalities"]
|
|
19448
19462
|
)
|
|
19449
19463
|
'''
|
|
19450
19464
|
if __debug__:
|
|
@@ -19452,11 +19466,17 @@ class CfnGuardrail(
|
|
|
19452
19466
|
check_type(argname="argument input_strength", value=input_strength, expected_type=type_hints["input_strength"])
|
|
19453
19467
|
check_type(argname="argument output_strength", value=output_strength, expected_type=type_hints["output_strength"])
|
|
19454
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"])
|
|
19455
19471
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
19456
19472
|
"input_strength": input_strength,
|
|
19457
19473
|
"output_strength": output_strength,
|
|
19458
19474
|
"type": type,
|
|
19459
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
|
|
19460
19480
|
|
|
19461
19481
|
@builtins.property
|
|
19462
19482
|
def input_strength(self) -> builtins.str:
|
|
@@ -19492,6 +19512,24 @@ class CfnGuardrail(
|
|
|
19492
19512
|
assert result is not None, "Required property 'type' is missing"
|
|
19493
19513
|
return typing.cast(builtins.str, result)
|
|
19494
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
|
+
|
|
19495
19533
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
19496
19534
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
19497
19535
|
|
|
@@ -19531,7 +19569,11 @@ class CfnGuardrail(
|
|
|
19531
19569
|
filters_config=[bedrock.CfnGuardrail.ContentFilterConfigProperty(
|
|
19532
19570
|
input_strength="inputStrength",
|
|
19533
19571
|
output_strength="outputStrength",
|
|
19534
|
-
type="type"
|
|
19572
|
+
type="type",
|
|
19573
|
+
|
|
19574
|
+
# the properties below are optional
|
|
19575
|
+
input_modalities=["inputModalities"],
|
|
19576
|
+
output_modalities=["outputModalities"]
|
|
19535
19577
|
)]
|
|
19536
19578
|
)
|
|
19537
19579
|
'''
|
|
@@ -20519,7 +20561,11 @@ class CfnGuardrailProps:
|
|
|
20519
20561
|
filters_config=[bedrock.CfnGuardrail.ContentFilterConfigProperty(
|
|
20520
20562
|
input_strength="inputStrength",
|
|
20521
20563
|
output_strength="outputStrength",
|
|
20522
|
-
type="type"
|
|
20564
|
+
type="type",
|
|
20565
|
+
|
|
20566
|
+
# the properties below are optional
|
|
20567
|
+
input_modalities=["inputModalities"],
|
|
20568
|
+
output_modalities=["outputModalities"]
|
|
20523
20569
|
)]
|
|
20524
20570
|
),
|
|
20525
20571
|
contextual_grounding_policy_config=bedrock.CfnGuardrail.ContextualGroundingPolicyConfigProperty(
|
|
@@ -21084,6 +21130,28 @@ class CfnKnowledgeBase(
|
|
|
21084
21130
|
type="type",
|
|
21085
21131
|
|
|
21086
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
|
+
),
|
|
21087
21155
|
opensearch_serverless_configuration=bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty(
|
|
21088
21156
|
collection_arn="collectionArn",
|
|
21089
21157
|
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty(
|
|
@@ -21811,6 +21879,411 @@ class CfnKnowledgeBase(
|
|
|
21811
21879
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
21812
21880
|
)
|
|
21813
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
|
+
|
|
21814
22287
|
@jsii.data_type(
|
|
21815
22288
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty",
|
|
21816
22289
|
jsii_struct_bases=[],
|
|
@@ -23824,6 +24297,8 @@ class CfnKnowledgeBase(
|
|
|
23824
24297
|
jsii_struct_bases=[],
|
|
23825
24298
|
name_mapping={
|
|
23826
24299
|
"type": "type",
|
|
24300
|
+
"mongo_db_atlas_configuration": "mongoDbAtlasConfiguration",
|
|
24301
|
+
"neptune_analytics_configuration": "neptuneAnalyticsConfiguration",
|
|
23827
24302
|
"opensearch_serverless_configuration": "opensearchServerlessConfiguration",
|
|
23828
24303
|
"pinecone_configuration": "pineconeConfiguration",
|
|
23829
24304
|
"rds_configuration": "rdsConfiguration",
|
|
@@ -23834,6 +24309,8 @@ class CfnKnowledgeBase(
|
|
|
23834
24309
|
self,
|
|
23835
24310
|
*,
|
|
23836
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,
|
|
23837
24314
|
opensearch_serverless_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23838
24315
|
pinecone_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.PineconeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23839
24316
|
rds_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.RdsConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -23841,6 +24318,8 @@ class CfnKnowledgeBase(
|
|
|
23841
24318
|
'''Contains the storage configuration of the knowledge base.
|
|
23842
24319
|
|
|
23843
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>`_ .
|
|
23844
24323
|
:param opensearch_serverless_configuration: Contains the storage configuration of the knowledge base in Amazon OpenSearch Service.
|
|
23845
24324
|
:param pinecone_configuration: Contains the storage configuration of the knowledge base in Pinecone.
|
|
23846
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>`_ .
|
|
@@ -23858,6 +24337,28 @@ class CfnKnowledgeBase(
|
|
|
23858
24337
|
type="type",
|
|
23859
24338
|
|
|
23860
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
|
+
),
|
|
23861
24362
|
opensearch_serverless_configuration=bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty(
|
|
23862
24363
|
collection_arn="collectionArn",
|
|
23863
24364
|
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty(
|
|
@@ -23895,12 +24396,18 @@ class CfnKnowledgeBase(
|
|
|
23895
24396
|
if __debug__:
|
|
23896
24397
|
type_hints = typing.get_type_hints(_typecheckingstub__fa4cccae88d65689f5f3cabcb8393a082af16eb90d7613332a03867c32272af4)
|
|
23897
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"])
|
|
23898
24401
|
check_type(argname="argument opensearch_serverless_configuration", value=opensearch_serverless_configuration, expected_type=type_hints["opensearch_serverless_configuration"])
|
|
23899
24402
|
check_type(argname="argument pinecone_configuration", value=pinecone_configuration, expected_type=type_hints["pinecone_configuration"])
|
|
23900
24403
|
check_type(argname="argument rds_configuration", value=rds_configuration, expected_type=type_hints["rds_configuration"])
|
|
23901
24404
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
23902
24405
|
"type": type,
|
|
23903
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
|
|
23904
24411
|
if opensearch_serverless_configuration is not None:
|
|
23905
24412
|
self._values["opensearch_serverless_configuration"] = opensearch_serverless_configuration
|
|
23906
24413
|
if pinecone_configuration is not None:
|
|
@@ -23918,6 +24425,30 @@ class CfnKnowledgeBase(
|
|
|
23918
24425
|
assert result is not None, "Required property 'type' is missing"
|
|
23919
24426
|
return typing.cast(builtins.str, result)
|
|
23920
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
|
+
|
|
23921
24452
|
@builtins.property
|
|
23922
24453
|
def opensearch_serverless_configuration(
|
|
23923
24454
|
self,
|
|
@@ -24371,6 +24902,28 @@ class CfnKnowledgeBaseProps:
|
|
|
24371
24902
|
type="type",
|
|
24372
24903
|
|
|
24373
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
|
+
),
|
|
24374
24927
|
opensearch_serverless_configuration=bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty(
|
|
24375
24928
|
collection_arn="collectionArn",
|
|
24376
24929
|
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty(
|
|
@@ -26042,7 +26595,7 @@ class CfnPrompt(
|
|
|
26042
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
|
|
26043
26596
|
.. epigraph::
|
|
26044
26597
|
|
|
26045
|
-
This field is only supported by
|
|
26598
|
+
This field is only supported by Anthropic Claude 3 models.
|
|
26046
26599
|
|
|
26047
26600
|
:param name: The name of the tool that the model must request.
|
|
26048
26601
|
|
|
@@ -26393,7 +26946,7 @@ class CfnPrompt(
|
|
|
26393
26946
|
|
|
26394
26947
|
:param any: The model must request at least one tool (no text is generated).
|
|
26395
26948
|
:param auto: (Default). The Model automatically decides if a tool should be called or whether to generate text instead.
|
|
26396
|
-
: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.
|
|
26397
26950
|
|
|
26398
26951
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html
|
|
26399
26952
|
:exampleMetadata: fixture=_generated
|
|
@@ -26454,7 +27007,7 @@ class CfnPrompt(
|
|
|
26454
27007
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.SpecificToolChoiceProperty"]]:
|
|
26455
27008
|
'''The Model must request the specified tool.
|
|
26456
27009
|
|
|
26457
|
-
Only supported by
|
|
27010
|
+
Only supported by Anthropic Claude 3 models.
|
|
26458
27011
|
|
|
26459
27012
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html#cfn-bedrock-prompt-toolchoice-tool
|
|
26460
27013
|
'''
|
|
@@ -28475,7 +29028,7 @@ class CfnPromptVersion(
|
|
|
28475
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
|
|
28476
29029
|
.. epigraph::
|
|
28477
29030
|
|
|
28478
|
-
This field is only supported by
|
|
29031
|
+
This field is only supported by Anthropic Claude 3 models.
|
|
28479
29032
|
|
|
28480
29033
|
:param name: The name of the tool that the model must request.
|
|
28481
29034
|
|
|
@@ -28717,7 +29270,7 @@ class CfnPromptVersion(
|
|
|
28717
29270
|
|
|
28718
29271
|
:param any: The model must request at least one tool (no text is generated).
|
|
28719
29272
|
:param auto: (Default). The Model automatically decides if a tool should be called or whether to generate text instead.
|
|
28720
|
-
: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.
|
|
28721
29274
|
|
|
28722
29275
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-toolchoice.html
|
|
28723
29276
|
:exampleMetadata: fixture=_generated
|
|
@@ -28778,7 +29331,7 @@ class CfnPromptVersion(
|
|
|
28778
29331
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.SpecificToolChoiceProperty"]]:
|
|
28779
29332
|
'''The Model must request the specified tool.
|
|
28780
29333
|
|
|
28781
|
-
Only supported by
|
|
29334
|
+
Only supported by Anthropic Claude 3 models.
|
|
28782
29335
|
|
|
28783
29336
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-toolchoice.html#cfn-bedrock-promptversion-toolchoice-tool
|
|
28784
29337
|
'''
|
|
@@ -32451,6 +33004,8 @@ def _typecheckingstub__e931f7f6b53869d60aab0ecda0e56f276982aaf3a1ee755be3434f26d
|
|
|
32451
33004
|
input_strength: builtins.str,
|
|
32452
33005
|
output_strength: builtins.str,
|
|
32453
33006
|
type: builtins.str,
|
|
33007
|
+
input_modalities: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
33008
|
+
output_modalities: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
32454
33009
|
) -> None:
|
|
32455
33010
|
"""Type checking stubs"""
|
|
32456
33011
|
pass
|
|
@@ -32703,6 +33258,44 @@ def _typecheckingstub__f2ca26f28cc4cf3a289e62f58643faf6a7d98ea3e55e7ff4f0f77530f
|
|
|
32703
33258
|
"""Type checking stubs"""
|
|
32704
33259
|
pass
|
|
32705
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
|
+
|
|
32706
33299
|
def _typecheckingstub__ebf20de0b58d579ecbd2aeccf094bb6c29ae3627a2b4628485b0235e33626d24(
|
|
32707
33300
|
*,
|
|
32708
33301
|
collection_arn: builtins.str,
|
|
@@ -32887,6 +33480,8 @@ def _typecheckingstub__859a2388b8dce18b70af579c281f226f3fd2e03785d55377afa53e160
|
|
|
32887
33480
|
def _typecheckingstub__fa4cccae88d65689f5f3cabcb8393a082af16eb90d7613332a03867c32272af4(
|
|
32888
33481
|
*,
|
|
32889
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,
|
|
32890
33485
|
opensearch_serverless_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
32891
33486
|
pinecone_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.PineconeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
32892
33487
|
rds_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.RdsConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|