aws-cdk-lib 2.139.1__py3-none-any.whl → 2.141.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 +8 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.139.1.jsii.tgz → aws-cdk-lib@2.141.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +70 -56
- aws_cdk/aws_apigateway/__init__.py +126 -53
- aws_cdk/aws_applicationautoscaling/__init__.py +1 -4
- aws_cdk/aws_arczonalshift/__init__.py +49 -44
- aws_cdk/aws_bedrock/__init__.py +2829 -147
- aws_cdk/aws_cloudfront/__init__.py +51 -9
- aws_cdk/aws_cloudtrail/__init__.py +13 -4
- aws_cdk/aws_codecommit/__init__.py +72 -46
- aws_cdk/aws_connectcampaigns/__init__.py +34 -4
- aws_cdk/aws_datasync/__init__.py +96 -75
- aws_cdk/aws_dms/__init__.py +0 -269
- aws_cdk/aws_dynamodb/__init__.py +410 -0
- aws_cdk/aws_ec2/__init__.py +239 -84
- aws_cdk/aws_ecr/__init__.py +32 -7
- aws_cdk/aws_ecs/__init__.py +2 -4
- aws_cdk/aws_efs/__init__.py +16 -2
- aws_cdk/aws_eks/__init__.py +57 -0
- aws_cdk/aws_entityresolution/__init__.py +6 -2
- aws_cdk/aws_events/__init__.py +115 -0
- aws_cdk/aws_events_targets/__init__.py +15 -0
- aws_cdk/aws_fis/__init__.py +2 -1
- aws_cdk/aws_fms/__init__.py +7 -7
- aws_cdk/aws_gamelift/__init__.py +1984 -107
- aws_cdk/aws_globalaccelerator/__init__.py +20 -16
- aws_cdk/aws_iam/__init__.py +2 -2
- aws_cdk/aws_ivs/__init__.py +1 -3
- aws_cdk/aws_kinesis/__init__.py +21 -0
- aws_cdk/aws_kinesisvideo/__init__.py +6 -4
- aws_cdk/aws_kms/__init__.py +33 -6
- aws_cdk/aws_lambda/__init__.py +0 -9
- aws_cdk/aws_location/__init__.py +8 -4
- aws_cdk/aws_medialive/__init__.py +444 -3
- aws_cdk/aws_oam/__init__.py +45 -11
- aws_cdk/aws_omics/__init__.py +4 -4
- aws_cdk/aws_paymentcryptography/__init__.py +1155 -0
- aws_cdk/aws_personalize/__init__.py +8 -2
- aws_cdk/aws_pinpoint/__init__.py +7 -5
- aws_cdk/aws_qbusiness/__init__.py +5583 -0
- aws_cdk/aws_quicksight/__init__.py +10063 -1450
- aws_cdk/aws_rds/__init__.py +77 -5
- aws_cdk/aws_redshiftserverless/__init__.py +13 -9
- aws_cdk/aws_route53/__init__.py +350 -0
- aws_cdk/aws_route53profiles/__init__.py +1048 -0
- aws_cdk/aws_s3/__init__.py +1 -1
- aws_cdk/aws_sagemaker/__init__.py +30 -30
- aws_cdk/aws_ses/__init__.py +9 -9
- aws_cdk/aws_transfer/__init__.py +102 -37
- aws_cdk/aws_voiceid/__init__.py +2 -2
- aws_cdk/aws_workspacesweb/__init__.py +92 -6
- aws_cdk/custom_resources/__init__.py +23 -2
- aws_cdk/cx_api/__init__.py +16 -0
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/RECORD +60 -57
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
Amazon Bedrock is a fully managed service that offers a choice of foundation models (FMs)
|
|
5
5
|
along with a broad set of capabilities for building generative AI applications.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
This construct library is a collection of constructs that can look up existing Bedrock models
|
|
7
|
+
This construct library provides a collection of constructs that can look up existing Bedrock models
|
|
9
8
|
for use with other services' CDK constructs, such as AWS Step Functions.
|
|
10
9
|
|
|
11
10
|
To look up a Bedrock base foundation model:
|
|
@@ -25,6 +24,11 @@ import aws_cdk.aws_bedrock as bedrock
|
|
|
25
24
|
|
|
26
25
|
bedrock.ProvisionedModel.from_provisioned_model_arn(self, "Model", "arn:aws:bedrock:us-east-2:123456789012:provisioned-model/abc-123")
|
|
27
26
|
```
|
|
27
|
+
|
|
28
|
+
There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for provisioning Bedrock resources yet. Here are some suggestions on how to proceed:
|
|
29
|
+
|
|
30
|
+
* Search [Construct Hub for Bedrock construct libraries](https://constructs.dev/search?q=bedrock)
|
|
31
|
+
* Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::Bedrock resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Bedrock.html) directly.
|
|
28
32
|
'''
|
|
29
33
|
from pkgutil import extend_path
|
|
30
34
|
__path__ = extend_path(__path__, __name__)
|
|
@@ -46,6 +50,7 @@ from .._jsii import *
|
|
|
46
50
|
import constructs as _constructs_77d1e7e8
|
|
47
51
|
from .. import (
|
|
48
52
|
CfnResource as _CfnResource_9df397a6,
|
|
53
|
+
CfnTag as _CfnTag_f6864754,
|
|
49
54
|
IInspectable as _IInspectable_c2943556,
|
|
50
55
|
IResolvable as _IResolvable_da3f097b,
|
|
51
56
|
ITaggableV2 as _ITaggableV2_4e6798f8,
|
|
@@ -139,6 +144,9 @@ class CfnAgent(
|
|
|
139
144
|
skip_resource_in_use_check_on_delete=False,
|
|
140
145
|
tags={
|
|
141
146
|
"tags_key": "tags"
|
|
147
|
+
},
|
|
148
|
+
test_alias_tags={
|
|
149
|
+
"test_alias_tags_key": "testAliasTags"
|
|
142
150
|
}
|
|
143
151
|
)
|
|
144
152
|
'''
|
|
@@ -161,6 +169,7 @@ class CfnAgent(
|
|
|
161
169
|
prompt_override_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.PromptOverrideConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
162
170
|
skip_resource_in_use_check_on_delete: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
163
171
|
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
172
|
+
test_alias_tags: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]] = None,
|
|
164
173
|
) -> None:
|
|
165
174
|
'''
|
|
166
175
|
:param scope: Scope in which this resource is defined.
|
|
@@ -178,6 +187,7 @@ class CfnAgent(
|
|
|
178
187
|
:param prompt_override_configuration: Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see `Advanced prompts <https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html>`_ .
|
|
179
188
|
:param skip_resource_in_use_check_on_delete: Specifies whether to delete the resource even if it's in use. By default, this value is ``false`` . Default: - false
|
|
180
189
|
:param tags: Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_ - `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
|
|
190
|
+
:param test_alias_tags: A map of tag keys and values.
|
|
181
191
|
'''
|
|
182
192
|
if __debug__:
|
|
183
193
|
type_hints = typing.get_type_hints(_typecheckingstub__facaad57ffe16da42f099d2b7997f3e6fd3b9eba46fd226d8fb5afe286371e74)
|
|
@@ -197,6 +207,7 @@ class CfnAgent(
|
|
|
197
207
|
prompt_override_configuration=prompt_override_configuration,
|
|
198
208
|
skip_resource_in_use_check_on_delete=skip_resource_in_use_check_on_delete,
|
|
199
209
|
tags=tags,
|
|
210
|
+
test_alias_tags=test_alias_tags,
|
|
200
211
|
)
|
|
201
212
|
|
|
202
213
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -531,6 +542,24 @@ class CfnAgent(
|
|
|
531
542
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
532
543
|
jsii.set(self, "tags", value)
|
|
533
544
|
|
|
545
|
+
@builtins.property
|
|
546
|
+
@jsii.member(jsii_name="testAliasTags")
|
|
547
|
+
def test_alias_tags(
|
|
548
|
+
self,
|
|
549
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]]:
|
|
550
|
+
'''A map of tag keys and values.'''
|
|
551
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]], jsii.get(self, "testAliasTags"))
|
|
552
|
+
|
|
553
|
+
@test_alias_tags.setter
|
|
554
|
+
def test_alias_tags(
|
|
555
|
+
self,
|
|
556
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]],
|
|
557
|
+
) -> None:
|
|
558
|
+
if __debug__:
|
|
559
|
+
type_hints = typing.get_type_hints(_typecheckingstub__0adf24775a3a1362c3b4eeb79adc26cdf461e3c52ade9a1522d271295bf0d775)
|
|
560
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
561
|
+
jsii.set(self, "testAliasTags", value)
|
|
562
|
+
|
|
534
563
|
@jsii.data_type(
|
|
535
564
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.APISchemaProperty",
|
|
536
565
|
jsii_struct_bases=[],
|
|
@@ -955,11 +984,11 @@ class CfnAgent(
|
|
|
955
984
|
top_k: typing.Optional[jsii.Number] = None,
|
|
956
985
|
top_p: typing.Optional[jsii.Number] = None,
|
|
957
986
|
) -> None:
|
|
958
|
-
'''
|
|
987
|
+
'''Specifications about the inference parameters that were provided alongside the prompt.
|
|
959
988
|
|
|
960
|
-
For more information, see `Inference parameters for foundation models <https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html>`_ .
|
|
989
|
+
These are specified in the `PromptOverrideConfiguration <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html>`_ object that was set when the agent was created or updated. For more information, see `Inference parameters for foundation models <https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html>`_ .
|
|
961
990
|
|
|
962
|
-
:param maximum_length: The maximum number of tokens
|
|
991
|
+
:param maximum_length: The maximum number of tokens allowed in the generated response.
|
|
963
992
|
:param stop_sequences: A list of stop sequences. A stop sequence is a sequence of characters that causes the model to stop generating the response.
|
|
964
993
|
:param temperature: The likelihood of the model selecting higher-probability options while generating a response. A lower value makes the model more likely to choose higher-probability options, while a higher value makes the model more likely to choose lower-probability options.
|
|
965
994
|
:param top_k: While generating a response, the model determines the probability of the following token at each point of generation. The value that you set for ``topK`` is the number of most-likely candidates from which the model chooses the next token in the sequence. For example, if you set ``topK`` to 50, the model selects the next token from among the top 50 most likely choices.
|
|
@@ -1003,7 +1032,7 @@ class CfnAgent(
|
|
|
1003
1032
|
|
|
1004
1033
|
@builtins.property
|
|
1005
1034
|
def maximum_length(self) -> typing.Optional[jsii.Number]:
|
|
1006
|
-
'''The maximum number of tokens
|
|
1035
|
+
'''The maximum number of tokens allowed in the generated response.
|
|
1007
1036
|
|
|
1008
1037
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-inferenceconfiguration.html#cfn-bedrock-agent-inferenceconfiguration-maximumlength
|
|
1009
1038
|
'''
|
|
@@ -1947,6 +1976,7 @@ class CfnAgentAliasProps:
|
|
|
1947
1976
|
"prompt_override_configuration": "promptOverrideConfiguration",
|
|
1948
1977
|
"skip_resource_in_use_check_on_delete": "skipResourceInUseCheckOnDelete",
|
|
1949
1978
|
"tags": "tags",
|
|
1979
|
+
"test_alias_tags": "testAliasTags",
|
|
1950
1980
|
},
|
|
1951
1981
|
)
|
|
1952
1982
|
class CfnAgentProps:
|
|
@@ -1966,6 +1996,7 @@ class CfnAgentProps:
|
|
|
1966
1996
|
prompt_override_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.PromptOverrideConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1967
1997
|
skip_resource_in_use_check_on_delete: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
1968
1998
|
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
1999
|
+
test_alias_tags: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]] = None,
|
|
1969
2000
|
) -> None:
|
|
1970
2001
|
'''Properties for defining a ``CfnAgent``.
|
|
1971
2002
|
|
|
@@ -1982,6 +2013,7 @@ class CfnAgentProps:
|
|
|
1982
2013
|
:param prompt_override_configuration: Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see `Advanced prompts <https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html>`_ .
|
|
1983
2014
|
:param skip_resource_in_use_check_on_delete: Specifies whether to delete the resource even if it's in use. By default, this value is ``false`` . Default: - false
|
|
1984
2015
|
:param tags: Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_ - `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
|
|
2016
|
+
:param test_alias_tags: A map of tag keys and values.
|
|
1985
2017
|
|
|
1986
2018
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html
|
|
1987
2019
|
:exampleMetadata: fixture=_generated
|
|
@@ -2051,6 +2083,9 @@ class CfnAgentProps:
|
|
|
2051
2083
|
skip_resource_in_use_check_on_delete=False,
|
|
2052
2084
|
tags={
|
|
2053
2085
|
"tags_key": "tags"
|
|
2086
|
+
},
|
|
2087
|
+
test_alias_tags={
|
|
2088
|
+
"test_alias_tags_key": "testAliasTags"
|
|
2054
2089
|
}
|
|
2055
2090
|
)
|
|
2056
2091
|
'''
|
|
@@ -2069,6 +2104,7 @@ class CfnAgentProps:
|
|
|
2069
2104
|
check_type(argname="argument prompt_override_configuration", value=prompt_override_configuration, expected_type=type_hints["prompt_override_configuration"])
|
|
2070
2105
|
check_type(argname="argument skip_resource_in_use_check_on_delete", value=skip_resource_in_use_check_on_delete, expected_type=type_hints["skip_resource_in_use_check_on_delete"])
|
|
2071
2106
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
2107
|
+
check_type(argname="argument test_alias_tags", value=test_alias_tags, expected_type=type_hints["test_alias_tags"])
|
|
2072
2108
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
2073
2109
|
"agent_name": agent_name,
|
|
2074
2110
|
}
|
|
@@ -2096,6 +2132,8 @@ class CfnAgentProps:
|
|
|
2096
2132
|
self._values["skip_resource_in_use_check_on_delete"] = skip_resource_in_use_check_on_delete
|
|
2097
2133
|
if tags is not None:
|
|
2098
2134
|
self._values["tags"] = tags
|
|
2135
|
+
if test_alias_tags is not None:
|
|
2136
|
+
self._values["test_alias_tags"] = test_alias_tags
|
|
2099
2137
|
|
|
2100
2138
|
@builtins.property
|
|
2101
2139
|
def agent_name(self) -> builtins.str:
|
|
@@ -2240,6 +2278,17 @@ class CfnAgentProps:
|
|
|
2240
2278
|
result = self._values.get("tags")
|
|
2241
2279
|
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
2242
2280
|
|
|
2281
|
+
@builtins.property
|
|
2282
|
+
def test_alias_tags(
|
|
2283
|
+
self,
|
|
2284
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]]:
|
|
2285
|
+
'''A map of tag keys and values.
|
|
2286
|
+
|
|
2287
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-testaliastags
|
|
2288
|
+
'''
|
|
2289
|
+
result = self._values.get("test_alias_tags")
|
|
2290
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]], result)
|
|
2291
|
+
|
|
2243
2292
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2244
2293
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2245
2294
|
|
|
@@ -2285,6 +2334,7 @@ class CfnDataSource(
|
|
|
2285
2334
|
bucket_arn="bucketArn",
|
|
2286
2335
|
|
|
2287
2336
|
# the properties below are optional
|
|
2337
|
+
bucket_owner_account_id="bucketOwnerAccountId",
|
|
2288
2338
|
inclusion_prefixes=["inclusionPrefixes"]
|
|
2289
2339
|
),
|
|
2290
2340
|
type="type"
|
|
@@ -2293,6 +2343,7 @@ class CfnDataSource(
|
|
|
2293
2343
|
name="name",
|
|
2294
2344
|
|
|
2295
2345
|
# the properties below are optional
|
|
2346
|
+
data_deletion_policy="dataDeletionPolicy",
|
|
2296
2347
|
description="description",
|
|
2297
2348
|
server_side_encryption_configuration=bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty(
|
|
2298
2349
|
kms_key_arn="kmsKeyArn"
|
|
@@ -2319,6 +2370,7 @@ class CfnDataSource(
|
|
|
2319
2370
|
data_source_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.DataSourceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
2320
2371
|
knowledge_base_id: builtins.str,
|
|
2321
2372
|
name: builtins.str,
|
|
2373
|
+
data_deletion_policy: typing.Optional[builtins.str] = None,
|
|
2322
2374
|
description: typing.Optional[builtins.str] = None,
|
|
2323
2375
|
server_side_encryption_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.ServerSideEncryptionConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2324
2376
|
vector_ingestion_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.VectorIngestionConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -2329,6 +2381,7 @@ class CfnDataSource(
|
|
|
2329
2381
|
:param data_source_configuration: Contains details about how the data source is stored.
|
|
2330
2382
|
:param knowledge_base_id: The unique identifier of the knowledge base to which the data source belongs.
|
|
2331
2383
|
:param name: The name of the data source.
|
|
2384
|
+
:param data_deletion_policy: The data deletion policy for a data source.
|
|
2332
2385
|
:param description: The description of the data source.
|
|
2333
2386
|
:param server_side_encryption_configuration: Contains details about the configuration of the server-side encryption.
|
|
2334
2387
|
:param vector_ingestion_configuration: Contains details about how to ingest the documents in the data source.
|
|
@@ -2341,6 +2394,7 @@ class CfnDataSource(
|
|
|
2341
2394
|
data_source_configuration=data_source_configuration,
|
|
2342
2395
|
knowledge_base_id=knowledge_base_id,
|
|
2343
2396
|
name=name,
|
|
2397
|
+
data_deletion_policy=data_deletion_policy,
|
|
2344
2398
|
description=description,
|
|
2345
2399
|
server_side_encryption_configuration=server_side_encryption_configuration,
|
|
2346
2400
|
vector_ingestion_configuration=vector_ingestion_configuration,
|
|
@@ -2408,6 +2462,15 @@ class CfnDataSource(
|
|
|
2408
2462
|
'''
|
|
2409
2463
|
return typing.cast(builtins.str, jsii.get(self, "attrDataSourceStatus"))
|
|
2410
2464
|
|
|
2465
|
+
@builtins.property
|
|
2466
|
+
@jsii.member(jsii_name="attrFailureReasons")
|
|
2467
|
+
def attr_failure_reasons(self) -> typing.List[builtins.str]:
|
|
2468
|
+
'''The detailed reasons on the failure to delete a data source.
|
|
2469
|
+
|
|
2470
|
+
:cloudformationAttribute: FailureReasons
|
|
2471
|
+
'''
|
|
2472
|
+
return typing.cast(typing.List[builtins.str], jsii.get(self, "attrFailureReasons"))
|
|
2473
|
+
|
|
2411
2474
|
@builtins.property
|
|
2412
2475
|
@jsii.member(jsii_name="attrUpdatedAt")
|
|
2413
2476
|
def attr_updated_at(self) -> builtins.str:
|
|
@@ -2466,6 +2529,19 @@ class CfnDataSource(
|
|
|
2466
2529
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2467
2530
|
jsii.set(self, "name", value)
|
|
2468
2531
|
|
|
2532
|
+
@builtins.property
|
|
2533
|
+
@jsii.member(jsii_name="dataDeletionPolicy")
|
|
2534
|
+
def data_deletion_policy(self) -> typing.Optional[builtins.str]:
|
|
2535
|
+
'''The data deletion policy for a data source.'''
|
|
2536
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "dataDeletionPolicy"))
|
|
2537
|
+
|
|
2538
|
+
@data_deletion_policy.setter
|
|
2539
|
+
def data_deletion_policy(self, value: typing.Optional[builtins.str]) -> None:
|
|
2540
|
+
if __debug__:
|
|
2541
|
+
type_hints = typing.get_type_hints(_typecheckingstub__13070c256fb6cad53f284f3bdd82c32491d75ab72033b19aa76e3daf539a2b8f)
|
|
2542
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2543
|
+
jsii.set(self, "dataDeletionPolicy", value)
|
|
2544
|
+
|
|
2469
2545
|
@builtins.property
|
|
2470
2546
|
@jsii.member(jsii_name="description")
|
|
2471
2547
|
def description(self) -> typing.Optional[builtins.str]:
|
|
@@ -2636,6 +2712,7 @@ class CfnDataSource(
|
|
|
2636
2712
|
bucket_arn="bucketArn",
|
|
2637
2713
|
|
|
2638
2714
|
# the properties below are optional
|
|
2715
|
+
bucket_owner_account_id="bucketOwnerAccountId",
|
|
2639
2716
|
inclusion_prefixes=["inclusionPrefixes"]
|
|
2640
2717
|
),
|
|
2641
2718
|
type="type"
|
|
@@ -2764,6 +2841,7 @@ class CfnDataSource(
|
|
|
2764
2841
|
jsii_struct_bases=[],
|
|
2765
2842
|
name_mapping={
|
|
2766
2843
|
"bucket_arn": "bucketArn",
|
|
2844
|
+
"bucket_owner_account_id": "bucketOwnerAccountId",
|
|
2767
2845
|
"inclusion_prefixes": "inclusionPrefixes",
|
|
2768
2846
|
},
|
|
2769
2847
|
)
|
|
@@ -2772,11 +2850,13 @@ class CfnDataSource(
|
|
|
2772
2850
|
self,
|
|
2773
2851
|
*,
|
|
2774
2852
|
bucket_arn: builtins.str,
|
|
2853
|
+
bucket_owner_account_id: typing.Optional[builtins.str] = None,
|
|
2775
2854
|
inclusion_prefixes: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
2776
2855
|
) -> None:
|
|
2777
2856
|
'''Contains information about the S3 configuration of the data source.
|
|
2778
2857
|
|
|
2779
2858
|
:param bucket_arn: The Amazon Resource Name (ARN) of the bucket that contains the data source.
|
|
2859
|
+
:param bucket_owner_account_id: The bucket account owner ID for the S3 bucket.
|
|
2780
2860
|
:param inclusion_prefixes: A list of S3 prefixes that define the object containing the data sources. For more information, see `Organizing objects using prefixes <https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html>`_ .
|
|
2781
2861
|
|
|
2782
2862
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html
|
|
@@ -2792,16 +2872,20 @@ class CfnDataSource(
|
|
|
2792
2872
|
bucket_arn="bucketArn",
|
|
2793
2873
|
|
|
2794
2874
|
# the properties below are optional
|
|
2875
|
+
bucket_owner_account_id="bucketOwnerAccountId",
|
|
2795
2876
|
inclusion_prefixes=["inclusionPrefixes"]
|
|
2796
2877
|
)
|
|
2797
2878
|
'''
|
|
2798
2879
|
if __debug__:
|
|
2799
2880
|
type_hints = typing.get_type_hints(_typecheckingstub__6b4929296343a5ea55bce5d28d11b34fa10885df35596a08102658f8bcbc8c5b)
|
|
2800
2881
|
check_type(argname="argument bucket_arn", value=bucket_arn, expected_type=type_hints["bucket_arn"])
|
|
2882
|
+
check_type(argname="argument bucket_owner_account_id", value=bucket_owner_account_id, expected_type=type_hints["bucket_owner_account_id"])
|
|
2801
2883
|
check_type(argname="argument inclusion_prefixes", value=inclusion_prefixes, expected_type=type_hints["inclusion_prefixes"])
|
|
2802
2884
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
2803
2885
|
"bucket_arn": bucket_arn,
|
|
2804
2886
|
}
|
|
2887
|
+
if bucket_owner_account_id is not None:
|
|
2888
|
+
self._values["bucket_owner_account_id"] = bucket_owner_account_id
|
|
2805
2889
|
if inclusion_prefixes is not None:
|
|
2806
2890
|
self._values["inclusion_prefixes"] = inclusion_prefixes
|
|
2807
2891
|
|
|
@@ -2815,6 +2899,15 @@ class CfnDataSource(
|
|
|
2815
2899
|
assert result is not None, "Required property 'bucket_arn' is missing"
|
|
2816
2900
|
return typing.cast(builtins.str, result)
|
|
2817
2901
|
|
|
2902
|
+
@builtins.property
|
|
2903
|
+
def bucket_owner_account_id(self) -> typing.Optional[builtins.str]:
|
|
2904
|
+
'''The bucket account owner ID for the S3 bucket.
|
|
2905
|
+
|
|
2906
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html#cfn-bedrock-datasource-s3datasourceconfiguration-bucketowneraccountid
|
|
2907
|
+
'''
|
|
2908
|
+
result = self._values.get("bucket_owner_account_id")
|
|
2909
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2910
|
+
|
|
2818
2911
|
@builtins.property
|
|
2819
2912
|
def inclusion_prefixes(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
2820
2913
|
'''A list of S3 prefixes that define the object containing the data sources.
|
|
@@ -2967,6 +3060,7 @@ class CfnDataSource(
|
|
|
2967
3060
|
"data_source_configuration": "dataSourceConfiguration",
|
|
2968
3061
|
"knowledge_base_id": "knowledgeBaseId",
|
|
2969
3062
|
"name": "name",
|
|
3063
|
+
"data_deletion_policy": "dataDeletionPolicy",
|
|
2970
3064
|
"description": "description",
|
|
2971
3065
|
"server_side_encryption_configuration": "serverSideEncryptionConfiguration",
|
|
2972
3066
|
"vector_ingestion_configuration": "vectorIngestionConfiguration",
|
|
@@ -2979,6 +3073,7 @@ class CfnDataSourceProps:
|
|
|
2979
3073
|
data_source_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.DataSourceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
2980
3074
|
knowledge_base_id: builtins.str,
|
|
2981
3075
|
name: builtins.str,
|
|
3076
|
+
data_deletion_policy: typing.Optional[builtins.str] = None,
|
|
2982
3077
|
description: typing.Optional[builtins.str] = None,
|
|
2983
3078
|
server_side_encryption_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.ServerSideEncryptionConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2984
3079
|
vector_ingestion_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.VectorIngestionConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -2988,6 +3083,7 @@ class CfnDataSourceProps:
|
|
|
2988
3083
|
:param data_source_configuration: Contains details about how the data source is stored.
|
|
2989
3084
|
:param knowledge_base_id: The unique identifier of the knowledge base to which the data source belongs.
|
|
2990
3085
|
:param name: The name of the data source.
|
|
3086
|
+
:param data_deletion_policy: The data deletion policy for a data source.
|
|
2991
3087
|
:param description: The description of the data source.
|
|
2992
3088
|
:param server_side_encryption_configuration: Contains details about the configuration of the server-side encryption.
|
|
2993
3089
|
:param vector_ingestion_configuration: Contains details about how to ingest the documents in the data source.
|
|
@@ -3007,6 +3103,7 @@ class CfnDataSourceProps:
|
|
|
3007
3103
|
bucket_arn="bucketArn",
|
|
3008
3104
|
|
|
3009
3105
|
# the properties below are optional
|
|
3106
|
+
bucket_owner_account_id="bucketOwnerAccountId",
|
|
3010
3107
|
inclusion_prefixes=["inclusionPrefixes"]
|
|
3011
3108
|
),
|
|
3012
3109
|
type="type"
|
|
@@ -3015,6 +3112,7 @@ class CfnDataSourceProps:
|
|
|
3015
3112
|
name="name",
|
|
3016
3113
|
|
|
3017
3114
|
# the properties below are optional
|
|
3115
|
+
data_deletion_policy="dataDeletionPolicy",
|
|
3018
3116
|
description="description",
|
|
3019
3117
|
server_side_encryption_configuration=bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty(
|
|
3020
3118
|
kms_key_arn="kmsKeyArn"
|
|
@@ -3037,6 +3135,7 @@ class CfnDataSourceProps:
|
|
|
3037
3135
|
check_type(argname="argument data_source_configuration", value=data_source_configuration, expected_type=type_hints["data_source_configuration"])
|
|
3038
3136
|
check_type(argname="argument knowledge_base_id", value=knowledge_base_id, expected_type=type_hints["knowledge_base_id"])
|
|
3039
3137
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
3138
|
+
check_type(argname="argument data_deletion_policy", value=data_deletion_policy, expected_type=type_hints["data_deletion_policy"])
|
|
3040
3139
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
3041
3140
|
check_type(argname="argument server_side_encryption_configuration", value=server_side_encryption_configuration, expected_type=type_hints["server_side_encryption_configuration"])
|
|
3042
3141
|
check_type(argname="argument vector_ingestion_configuration", value=vector_ingestion_configuration, expected_type=type_hints["vector_ingestion_configuration"])
|
|
@@ -3045,6 +3144,8 @@ class CfnDataSourceProps:
|
|
|
3045
3144
|
"knowledge_base_id": knowledge_base_id,
|
|
3046
3145
|
"name": name,
|
|
3047
3146
|
}
|
|
3147
|
+
if data_deletion_policy is not None:
|
|
3148
|
+
self._values["data_deletion_policy"] = data_deletion_policy
|
|
3048
3149
|
if description is not None:
|
|
3049
3150
|
self._values["description"] = description
|
|
3050
3151
|
if server_side_encryption_configuration is not None:
|
|
@@ -3084,6 +3185,15 @@ class CfnDataSourceProps:
|
|
|
3084
3185
|
assert result is not None, "Required property 'name' is missing"
|
|
3085
3186
|
return typing.cast(builtins.str, result)
|
|
3086
3187
|
|
|
3188
|
+
@builtins.property
|
|
3189
|
+
def data_deletion_policy(self) -> typing.Optional[builtins.str]:
|
|
3190
|
+
'''The data deletion policy for a data source.
|
|
3191
|
+
|
|
3192
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-datadeletionpolicy
|
|
3193
|
+
'''
|
|
3194
|
+
result = self._values.get("data_deletion_policy")
|
|
3195
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
3196
|
+
|
|
3087
3197
|
@builtins.property
|
|
3088
3198
|
def description(self) -> typing.Optional[builtins.str]:
|
|
3089
3199
|
'''The description of the data source.
|
|
@@ -3128,30 +3238,17 @@ class CfnDataSourceProps:
|
|
|
3128
3238
|
|
|
3129
3239
|
|
|
3130
3240
|
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
3131
|
-
class
|
|
3241
|
+
class CfnGuardrail(
|
|
3132
3242
|
_CfnResource_9df397a6,
|
|
3133
3243
|
metaclass=jsii.JSIIMeta,
|
|
3134
|
-
jsii_type="aws-cdk-lib.aws_bedrock.
|
|
3244
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail",
|
|
3135
3245
|
):
|
|
3136
|
-
'''
|
|
3137
|
-
|
|
3138
|
-
- Name – Specify a name for the knowledge base.
|
|
3139
|
-
- RoleArn – Specify the Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base. For more information, see `Create a service role for Knowledge base for Amazon Bedrock <https://docs.aws.amazon.com/bedrock/latest/userguide/kb-permissions.html>`_ .
|
|
3140
|
-
- KnowledgeBaseConfiguration – Specify the embeddings configuration of the knowledge base. The following sub-properties are required:
|
|
3141
|
-
- Type – Specify the value ``VECTOR`` .
|
|
3142
|
-
- StorageConfiguration – Specify information about the vector store in which the data source is stored. The following sub-properties are required:
|
|
3143
|
-
- Type – Specify the vector store service that you are using.
|
|
3144
|
-
|
|
3145
|
-
.. epigraph::
|
|
3146
|
-
|
|
3147
|
-
Redis Enterprise Cloud vector stores are currently unsupported in AWS CloudFormation .
|
|
3148
|
-
|
|
3149
|
-
For more information about using knowledge bases in Amazon Bedrock , see `Knowledge base for Amazon Bedrock <https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html>`_ .
|
|
3246
|
+
'''Creates a guardrail to block topics and to implement safeguards for your generative AI applications.
|
|
3150
3247
|
|
|
3151
|
-
|
|
3248
|
+
You can configure denied topics to disallow undesirable topics and content filters to block harmful content in model inputs and responses. For more information, see `Guardrails for Amazon Bedrock <https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html>`_ in the *Amazon Bedrock User Guide*
|
|
3152
3249
|
|
|
3153
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-
|
|
3154
|
-
:cloudformationResource: AWS::Bedrock::
|
|
3250
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html
|
|
3251
|
+
:cloudformationResource: AWS::Bedrock::Guardrail
|
|
3155
3252
|
:exampleMetadata: fixture=_generated
|
|
3156
3253
|
|
|
3157
3254
|
Example::
|
|
@@ -3160,21 +3257,57 @@ class CfnKnowledgeBase(
|
|
|
3160
3257
|
# The values are placeholders you should change.
|
|
3161
3258
|
from aws_cdk import aws_bedrock as bedrock
|
|
3162
3259
|
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
vector_knowledge_base_configuration=bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty(
|
|
3167
|
-
embedding_model_arn="embeddingModelArn"
|
|
3168
|
-
)
|
|
3169
|
-
),
|
|
3260
|
+
cfn_guardrail = bedrock.CfnGuardrail(self, "MyCfnGuardrail",
|
|
3261
|
+
blocked_input_messaging="blockedInputMessaging",
|
|
3262
|
+
blocked_outputs_messaging="blockedOutputsMessaging",
|
|
3170
3263
|
name="name",
|
|
3171
|
-
role_arn="roleArn",
|
|
3172
3264
|
|
|
3173
3265
|
# the properties below are optional
|
|
3266
|
+
content_policy_config=bedrock.CfnGuardrail.ContentPolicyConfigProperty(
|
|
3267
|
+
filters_config=[bedrock.CfnGuardrail.ContentFilterConfigProperty(
|
|
3268
|
+
input_strength="inputStrength",
|
|
3269
|
+
output_strength="outputStrength",
|
|
3270
|
+
type="type"
|
|
3271
|
+
)]
|
|
3272
|
+
),
|
|
3174
3273
|
description="description",
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3274
|
+
kms_key_arn="kmsKeyArn",
|
|
3275
|
+
sensitive_information_policy_config=bedrock.CfnGuardrail.SensitiveInformationPolicyConfigProperty(
|
|
3276
|
+
pii_entities_config=[bedrock.CfnGuardrail.PiiEntityConfigProperty(
|
|
3277
|
+
action="action",
|
|
3278
|
+
type="type"
|
|
3279
|
+
)],
|
|
3280
|
+
regexes_config=[bedrock.CfnGuardrail.RegexConfigProperty(
|
|
3281
|
+
action="action",
|
|
3282
|
+
name="name",
|
|
3283
|
+
pattern="pattern",
|
|
3284
|
+
|
|
3285
|
+
# the properties below are optional
|
|
3286
|
+
description="description"
|
|
3287
|
+
)]
|
|
3288
|
+
),
|
|
3289
|
+
tags=[CfnTag(
|
|
3290
|
+
key="key",
|
|
3291
|
+
value="value"
|
|
3292
|
+
)],
|
|
3293
|
+
topic_policy_config=bedrock.CfnGuardrail.TopicPolicyConfigProperty(
|
|
3294
|
+
topics_config=[bedrock.CfnGuardrail.TopicConfigProperty(
|
|
3295
|
+
definition="definition",
|
|
3296
|
+
name="name",
|
|
3297
|
+
type="type",
|
|
3298
|
+
|
|
3299
|
+
# the properties below are optional
|
|
3300
|
+
examples=["examples"]
|
|
3301
|
+
)]
|
|
3302
|
+
),
|
|
3303
|
+
word_policy_config=bedrock.CfnGuardrail.WordPolicyConfigProperty(
|
|
3304
|
+
managed_word_lists_config=[bedrock.CfnGuardrail.ManagedWordsConfigProperty(
|
|
3305
|
+
type="type"
|
|
3306
|
+
)],
|
|
3307
|
+
words_config=[bedrock.CfnGuardrail.WordConfigProperty(
|
|
3308
|
+
text="text"
|
|
3309
|
+
)]
|
|
3310
|
+
)
|
|
3178
3311
|
)
|
|
3179
3312
|
'''
|
|
3180
3313
|
|
|
@@ -3183,31 +3316,46 @@ class CfnKnowledgeBase(
|
|
|
3183
3316
|
scope: _constructs_77d1e7e8.Construct,
|
|
3184
3317
|
id: builtins.str,
|
|
3185
3318
|
*,
|
|
3186
|
-
|
|
3319
|
+
blocked_input_messaging: builtins.str,
|
|
3320
|
+
blocked_outputs_messaging: builtins.str,
|
|
3187
3321
|
name: builtins.str,
|
|
3188
|
-
|
|
3322
|
+
content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.ContentPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3189
3323
|
description: typing.Optional[builtins.str] = None,
|
|
3190
|
-
|
|
3324
|
+
kms_key_arn: typing.Optional[builtins.str] = None,
|
|
3325
|
+
sensitive_information_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.SensitiveInformationPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3326
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3327
|
+
topic_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.TopicPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3328
|
+
word_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.WordPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3191
3329
|
) -> None:
|
|
3192
3330
|
'''
|
|
3193
3331
|
:param scope: Scope in which this resource is defined.
|
|
3194
3332
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
3195
|
-
:param
|
|
3196
|
-
:param
|
|
3197
|
-
:param
|
|
3198
|
-
:param
|
|
3199
|
-
:param
|
|
3333
|
+
:param blocked_input_messaging: The message to return when the guardrail blocks a prompt.
|
|
3334
|
+
:param blocked_outputs_messaging: The message to return when the guardrail blocks a model response.
|
|
3335
|
+
:param name: The name of the guardrail.
|
|
3336
|
+
:param content_policy_config: Content policy config for a guardrail.
|
|
3337
|
+
:param description: A description of the guardrail.
|
|
3338
|
+
:param kms_key_arn: The ARN of the AWS KMS key used to encrypt the guardrail.
|
|
3339
|
+
:param sensitive_information_policy_config: Sensitive information policy config for a guardrail.
|
|
3340
|
+
:param tags: Metadata that you can assign to a guardrail as key-value pairs. For more information, see the following resources:. - `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_ - `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
|
|
3341
|
+
:param topic_policy_config: Topic policy config for a guardrail.
|
|
3342
|
+
:param word_policy_config: Word policy config for a guardrail.
|
|
3200
3343
|
'''
|
|
3201
3344
|
if __debug__:
|
|
3202
|
-
type_hints = typing.get_type_hints(
|
|
3345
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2043b4e3280827dde584095cdad9778bf2076242696d52ba5a39dc96cedb89a0)
|
|
3203
3346
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
3204
3347
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
3205
|
-
props =
|
|
3206
|
-
|
|
3348
|
+
props = CfnGuardrailProps(
|
|
3349
|
+
blocked_input_messaging=blocked_input_messaging,
|
|
3350
|
+
blocked_outputs_messaging=blocked_outputs_messaging,
|
|
3207
3351
|
name=name,
|
|
3208
|
-
|
|
3352
|
+
content_policy_config=content_policy_config,
|
|
3209
3353
|
description=description,
|
|
3354
|
+
kms_key_arn=kms_key_arn,
|
|
3355
|
+
sensitive_information_policy_config=sensitive_information_policy_config,
|
|
3210
3356
|
tags=tags,
|
|
3357
|
+
topic_policy_config=topic_policy_config,
|
|
3358
|
+
word_policy_config=word_policy_config,
|
|
3211
3359
|
)
|
|
3212
3360
|
|
|
3213
3361
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -3219,7 +3367,7 @@ class CfnKnowledgeBase(
|
|
|
3219
3367
|
:param inspector: tree inspector to collect and process attributes.
|
|
3220
3368
|
'''
|
|
3221
3369
|
if __debug__:
|
|
3222
|
-
type_hints = typing.get_type_hints(
|
|
3370
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e92a00856c8ad560cb684783884ef636d036b3706e64c243b469db70f7b1d651)
|
|
3223
3371
|
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
3224
3372
|
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
3225
3373
|
|
|
@@ -3232,7 +3380,7 @@ class CfnKnowledgeBase(
|
|
|
3232
3380
|
:param props: -
|
|
3233
3381
|
'''
|
|
3234
3382
|
if __debug__:
|
|
3235
|
-
type_hints = typing.get_type_hints(
|
|
3383
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b769e76e098e449277bbeec2441c2e936bbf304845dbafabf4f5c614c9d2a27a)
|
|
3236
3384
|
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
3237
3385
|
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
3238
3386
|
|
|
@@ -3245,57 +3393,77 @@ class CfnKnowledgeBase(
|
|
|
3245
3393
|
@builtins.property
|
|
3246
3394
|
@jsii.member(jsii_name="attrCreatedAt")
|
|
3247
3395
|
def attr_created_at(self) -> builtins.str:
|
|
3248
|
-
'''The time at which the
|
|
3396
|
+
'''The date and time at which the guardrail was created.
|
|
3249
3397
|
|
|
3250
3398
|
:cloudformationAttribute: CreatedAt
|
|
3251
3399
|
'''
|
|
3252
3400
|
return typing.cast(builtins.str, jsii.get(self, "attrCreatedAt"))
|
|
3253
3401
|
|
|
3254
3402
|
@builtins.property
|
|
3255
|
-
@jsii.member(jsii_name="
|
|
3256
|
-
def
|
|
3257
|
-
'''
|
|
3403
|
+
@jsii.member(jsii_name="attrFailureRecommendations")
|
|
3404
|
+
def attr_failure_recommendations(self) -> typing.List[builtins.str]:
|
|
3405
|
+
'''List of failure recommendations.
|
|
3258
3406
|
|
|
3259
|
-
:cloudformationAttribute:
|
|
3407
|
+
:cloudformationAttribute: FailureRecommendations
|
|
3260
3408
|
'''
|
|
3261
|
-
return typing.cast(typing.List[builtins.str], jsii.get(self, "
|
|
3409
|
+
return typing.cast(typing.List[builtins.str], jsii.get(self, "attrFailureRecommendations"))
|
|
3262
3410
|
|
|
3263
3411
|
@builtins.property
|
|
3264
|
-
@jsii.member(jsii_name="
|
|
3265
|
-
def
|
|
3266
|
-
'''The Amazon Resource Name (ARN) of the
|
|
3412
|
+
@jsii.member(jsii_name="attrGuardrailArn")
|
|
3413
|
+
def attr_guardrail_arn(self) -> builtins.str:
|
|
3414
|
+
'''The Amazon Resource Name (ARN) of the guardrail.
|
|
3267
3415
|
|
|
3268
|
-
|
|
3416
|
+
This a the primary identifier for the guardrail.
|
|
3417
|
+
|
|
3418
|
+
:cloudformationAttribute: GuardrailArn
|
|
3269
3419
|
'''
|
|
3270
|
-
return typing.cast(builtins.str, jsii.get(self, "
|
|
3420
|
+
return typing.cast(builtins.str, jsii.get(self, "attrGuardrailArn"))
|
|
3271
3421
|
|
|
3272
3422
|
@builtins.property
|
|
3273
|
-
@jsii.member(jsii_name="
|
|
3274
|
-
def
|
|
3275
|
-
'''The unique identifier of the
|
|
3423
|
+
@jsii.member(jsii_name="attrGuardrailId")
|
|
3424
|
+
def attr_guardrail_id(self) -> builtins.str:
|
|
3425
|
+
'''The unique identifier of the guardrail.
|
|
3276
3426
|
|
|
3277
|
-
:cloudformationAttribute:
|
|
3427
|
+
:cloudformationAttribute: GuardrailId
|
|
3278
3428
|
'''
|
|
3279
|
-
return typing.cast(builtins.str, jsii.get(self, "
|
|
3429
|
+
return typing.cast(builtins.str, jsii.get(self, "attrGuardrailId"))
|
|
3280
3430
|
|
|
3281
3431
|
@builtins.property
|
|
3282
3432
|
@jsii.member(jsii_name="attrStatus")
|
|
3283
3433
|
def attr_status(self) -> builtins.str:
|
|
3284
|
-
'''
|
|
3434
|
+
'''Status of the guardrail.
|
|
3285
3435
|
|
|
3286
3436
|
:cloudformationAttribute: Status
|
|
3287
3437
|
'''
|
|
3288
3438
|
return typing.cast(builtins.str, jsii.get(self, "attrStatus"))
|
|
3289
3439
|
|
|
3440
|
+
@builtins.property
|
|
3441
|
+
@jsii.member(jsii_name="attrStatusReasons")
|
|
3442
|
+
def attr_status_reasons(self) -> typing.List[builtins.str]:
|
|
3443
|
+
'''List of status reasons.
|
|
3444
|
+
|
|
3445
|
+
:cloudformationAttribute: StatusReasons
|
|
3446
|
+
'''
|
|
3447
|
+
return typing.cast(typing.List[builtins.str], jsii.get(self, "attrStatusReasons"))
|
|
3448
|
+
|
|
3290
3449
|
@builtins.property
|
|
3291
3450
|
@jsii.member(jsii_name="attrUpdatedAt")
|
|
3292
3451
|
def attr_updated_at(self) -> builtins.str:
|
|
3293
|
-
'''The time at which the
|
|
3452
|
+
'''The date and time at which the guardrail was last updated.
|
|
3294
3453
|
|
|
3295
3454
|
:cloudformationAttribute: UpdatedAt
|
|
3296
3455
|
'''
|
|
3297
3456
|
return typing.cast(builtins.str, jsii.get(self, "attrUpdatedAt"))
|
|
3298
3457
|
|
|
3458
|
+
@builtins.property
|
|
3459
|
+
@jsii.member(jsii_name="attrVersion")
|
|
3460
|
+
def attr_version(self) -> builtins.str:
|
|
3461
|
+
'''The version of the guardrail.
|
|
3462
|
+
|
|
3463
|
+
:cloudformationAttribute: Version
|
|
3464
|
+
'''
|
|
3465
|
+
return typing.cast(builtins.str, jsii.get(self, "attrVersion"))
|
|
3466
|
+
|
|
3299
3467
|
@builtins.property
|
|
3300
3468
|
@jsii.member(jsii_name="cdkTagManager")
|
|
3301
3469
|
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
@@ -3308,102 +3476,182 @@ class CfnKnowledgeBase(
|
|
|
3308
3476
|
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
3309
3477
|
|
|
3310
3478
|
@builtins.property
|
|
3311
|
-
@jsii.member(jsii_name="
|
|
3312
|
-
def
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
'''Contains details about the embeddings configuration of the knowledge base.'''
|
|
3316
|
-
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.KnowledgeBaseConfigurationProperty"], jsii.get(self, "knowledgeBaseConfiguration"))
|
|
3479
|
+
@jsii.member(jsii_name="blockedInputMessaging")
|
|
3480
|
+
def blocked_input_messaging(self) -> builtins.str:
|
|
3481
|
+
'''The message to return when the guardrail blocks a prompt.'''
|
|
3482
|
+
return typing.cast(builtins.str, jsii.get(self, "blockedInputMessaging"))
|
|
3317
3483
|
|
|
3318
|
-
@
|
|
3319
|
-
def
|
|
3320
|
-
self,
|
|
3321
|
-
value: typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.KnowledgeBaseConfigurationProperty"],
|
|
3322
|
-
) -> None:
|
|
3484
|
+
@blocked_input_messaging.setter
|
|
3485
|
+
def blocked_input_messaging(self, value: builtins.str) -> None:
|
|
3323
3486
|
if __debug__:
|
|
3324
|
-
type_hints = typing.get_type_hints(
|
|
3487
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b8a2f9687ff4e81f4953a900999b03337df14ba54044290009f92b978479aa71)
|
|
3325
3488
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3326
|
-
jsii.set(self, "
|
|
3489
|
+
jsii.set(self, "blockedInputMessaging", value)
|
|
3490
|
+
|
|
3491
|
+
@builtins.property
|
|
3492
|
+
@jsii.member(jsii_name="blockedOutputsMessaging")
|
|
3493
|
+
def blocked_outputs_messaging(self) -> builtins.str:
|
|
3494
|
+
'''The message to return when the guardrail blocks a model response.'''
|
|
3495
|
+
return typing.cast(builtins.str, jsii.get(self, "blockedOutputsMessaging"))
|
|
3496
|
+
|
|
3497
|
+
@blocked_outputs_messaging.setter
|
|
3498
|
+
def blocked_outputs_messaging(self, value: builtins.str) -> None:
|
|
3499
|
+
if __debug__:
|
|
3500
|
+
type_hints = typing.get_type_hints(_typecheckingstub__59377d273ba1076fa0e7fa7b325e1080a042838c62e3d653e7e2d9fbfd37b757)
|
|
3501
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3502
|
+
jsii.set(self, "blockedOutputsMessaging", value)
|
|
3327
3503
|
|
|
3328
3504
|
@builtins.property
|
|
3329
3505
|
@jsii.member(jsii_name="name")
|
|
3330
3506
|
def name(self) -> builtins.str:
|
|
3331
|
-
'''The name of the
|
|
3507
|
+
'''The name of the guardrail.'''
|
|
3332
3508
|
return typing.cast(builtins.str, jsii.get(self, "name"))
|
|
3333
3509
|
|
|
3334
3510
|
@name.setter
|
|
3335
3511
|
def name(self, value: builtins.str) -> None:
|
|
3336
3512
|
if __debug__:
|
|
3337
|
-
type_hints = typing.get_type_hints(
|
|
3513
|
+
type_hints = typing.get_type_hints(_typecheckingstub__4214430bb449bbe8c35bffe05d8f030f2f1e4d9bf03e87e52eaf3920fcd73539)
|
|
3338
3514
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3339
3515
|
jsii.set(self, "name", value)
|
|
3340
3516
|
|
|
3341
3517
|
@builtins.property
|
|
3342
|
-
@jsii.member(jsii_name="
|
|
3343
|
-
def
|
|
3344
|
-
|
|
3345
|
-
|
|
3518
|
+
@jsii.member(jsii_name="contentPolicyConfig")
|
|
3519
|
+
def content_policy_config(
|
|
3520
|
+
self,
|
|
3521
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.ContentPolicyConfigProperty"]]:
|
|
3522
|
+
'''Content policy config for a guardrail.'''
|
|
3523
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.ContentPolicyConfigProperty"]], jsii.get(self, "contentPolicyConfig"))
|
|
3346
3524
|
|
|
3347
|
-
@
|
|
3348
|
-
def
|
|
3525
|
+
@content_policy_config.setter
|
|
3526
|
+
def content_policy_config(
|
|
3527
|
+
self,
|
|
3528
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.ContentPolicyConfigProperty"]],
|
|
3529
|
+
) -> None:
|
|
3349
3530
|
if __debug__:
|
|
3350
|
-
type_hints = typing.get_type_hints(
|
|
3531
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a2352c360e9d740d982528265b1e13ef0cbbc639f4ce7a9811f5347cf9c39343)
|
|
3351
3532
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3352
|
-
jsii.set(self, "
|
|
3533
|
+
jsii.set(self, "contentPolicyConfig", value)
|
|
3353
3534
|
|
|
3354
3535
|
@builtins.property
|
|
3355
3536
|
@jsii.member(jsii_name="description")
|
|
3356
3537
|
def description(self) -> typing.Optional[builtins.str]:
|
|
3357
|
-
'''
|
|
3538
|
+
'''A description of the guardrail.'''
|
|
3358
3539
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
|
|
3359
3540
|
|
|
3360
3541
|
@description.setter
|
|
3361
3542
|
def description(self, value: typing.Optional[builtins.str]) -> None:
|
|
3362
3543
|
if __debug__:
|
|
3363
|
-
type_hints = typing.get_type_hints(
|
|
3544
|
+
type_hints = typing.get_type_hints(_typecheckingstub__885f2a8f4b710e0b2b1255d6f0514f5b0e080398bf5941c4b2830331855b81ae)
|
|
3364
3545
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3365
3546
|
jsii.set(self, "description", value)
|
|
3366
3547
|
|
|
3548
|
+
@builtins.property
|
|
3549
|
+
@jsii.member(jsii_name="kmsKeyArn")
|
|
3550
|
+
def kms_key_arn(self) -> typing.Optional[builtins.str]:
|
|
3551
|
+
'''The ARN of the AWS KMS key used to encrypt the guardrail.'''
|
|
3552
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "kmsKeyArn"))
|
|
3553
|
+
|
|
3554
|
+
@kms_key_arn.setter
|
|
3555
|
+
def kms_key_arn(self, value: typing.Optional[builtins.str]) -> None:
|
|
3556
|
+
if __debug__:
|
|
3557
|
+
type_hints = typing.get_type_hints(_typecheckingstub__fbc1d4225a1496cd036d97ea54283afa42f857e546f96fed46866f7df1c2a712)
|
|
3558
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3559
|
+
jsii.set(self, "kmsKeyArn", value)
|
|
3560
|
+
|
|
3561
|
+
@builtins.property
|
|
3562
|
+
@jsii.member(jsii_name="sensitiveInformationPolicyConfig")
|
|
3563
|
+
def sensitive_information_policy_config(
|
|
3564
|
+
self,
|
|
3565
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.SensitiveInformationPolicyConfigProperty"]]:
|
|
3566
|
+
'''Sensitive information policy config for a guardrail.'''
|
|
3567
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.SensitiveInformationPolicyConfigProperty"]], jsii.get(self, "sensitiveInformationPolicyConfig"))
|
|
3568
|
+
|
|
3569
|
+
@sensitive_information_policy_config.setter
|
|
3570
|
+
def sensitive_information_policy_config(
|
|
3571
|
+
self,
|
|
3572
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.SensitiveInformationPolicyConfigProperty"]],
|
|
3573
|
+
) -> None:
|
|
3574
|
+
if __debug__:
|
|
3575
|
+
type_hints = typing.get_type_hints(_typecheckingstub__279893b9f82164ec1f1485986bfd2950340b836fafb5d6299d2c28b1d4277f9d)
|
|
3576
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3577
|
+
jsii.set(self, "sensitiveInformationPolicyConfig", value)
|
|
3578
|
+
|
|
3367
3579
|
@builtins.property
|
|
3368
3580
|
@jsii.member(jsii_name="tags")
|
|
3369
|
-
def tags(self) -> typing.Optional[typing.
|
|
3370
|
-
'''Metadata that you can assign to a
|
|
3581
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
3582
|
+
'''Metadata that you can assign to a guardrail as key-value pairs.
|
|
3371
3583
|
|
|
3372
3584
|
For more information, see the following resources:.
|
|
3373
3585
|
'''
|
|
3374
|
-
return typing.cast(typing.Optional[typing.
|
|
3586
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
3375
3587
|
|
|
3376
3588
|
@tags.setter
|
|
3377
|
-
def tags(
|
|
3589
|
+
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
3590
|
+
if __debug__:
|
|
3591
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d2d4316cf506347b6f9939e84461c5f14a0501165f7128ebaec15ea06b2fc68a)
|
|
3592
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3593
|
+
jsii.set(self, "tags", value)
|
|
3594
|
+
|
|
3595
|
+
@builtins.property
|
|
3596
|
+
@jsii.member(jsii_name="topicPolicyConfig")
|
|
3597
|
+
def topic_policy_config(
|
|
3378
3598
|
self,
|
|
3379
|
-
|
|
3599
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.TopicPolicyConfigProperty"]]:
|
|
3600
|
+
'''Topic policy config for a guardrail.'''
|
|
3601
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.TopicPolicyConfigProperty"]], jsii.get(self, "topicPolicyConfig"))
|
|
3602
|
+
|
|
3603
|
+
@topic_policy_config.setter
|
|
3604
|
+
def topic_policy_config(
|
|
3605
|
+
self,
|
|
3606
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.TopicPolicyConfigProperty"]],
|
|
3380
3607
|
) -> None:
|
|
3381
3608
|
if __debug__:
|
|
3382
|
-
type_hints = typing.get_type_hints(
|
|
3609
|
+
type_hints = typing.get_type_hints(_typecheckingstub__853c4d50370da0c19067d3356726317d2cb9cfdd5405344e1ded902c29bb30d0)
|
|
3383
3610
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3384
|
-
jsii.set(self, "
|
|
3611
|
+
jsii.set(self, "topicPolicyConfig", value)
|
|
3612
|
+
|
|
3613
|
+
@builtins.property
|
|
3614
|
+
@jsii.member(jsii_name="wordPolicyConfig")
|
|
3615
|
+
def word_policy_config(
|
|
3616
|
+
self,
|
|
3617
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.WordPolicyConfigProperty"]]:
|
|
3618
|
+
'''Word policy config for a guardrail.'''
|
|
3619
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.WordPolicyConfigProperty"]], jsii.get(self, "wordPolicyConfig"))
|
|
3620
|
+
|
|
3621
|
+
@word_policy_config.setter
|
|
3622
|
+
def word_policy_config(
|
|
3623
|
+
self,
|
|
3624
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.WordPolicyConfigProperty"]],
|
|
3625
|
+
) -> None:
|
|
3626
|
+
if __debug__:
|
|
3627
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8db61eded81d93fbd03b059a0415cd544498a84333ec2ae6cb76fed58dc07062)
|
|
3628
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3629
|
+
jsii.set(self, "wordPolicyConfig", value)
|
|
3385
3630
|
|
|
3386
3631
|
@jsii.data_type(
|
|
3387
|
-
jsii_type="aws-cdk-lib.aws_bedrock.
|
|
3632
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.ContentFilterConfigProperty",
|
|
3388
3633
|
jsii_struct_bases=[],
|
|
3389
3634
|
name_mapping={
|
|
3635
|
+
"input_strength": "inputStrength",
|
|
3636
|
+
"output_strength": "outputStrength",
|
|
3390
3637
|
"type": "type",
|
|
3391
|
-
"vector_knowledge_base_configuration": "vectorKnowledgeBaseConfiguration",
|
|
3392
3638
|
},
|
|
3393
3639
|
)
|
|
3394
|
-
class
|
|
3640
|
+
class ContentFilterConfigProperty:
|
|
3395
3641
|
def __init__(
|
|
3396
3642
|
self,
|
|
3397
3643
|
*,
|
|
3644
|
+
input_strength: builtins.str,
|
|
3645
|
+
output_strength: builtins.str,
|
|
3398
3646
|
type: builtins.str,
|
|
3399
|
-
vector_knowledge_base_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
3400
3647
|
) -> None:
|
|
3401
|
-
'''
|
|
3648
|
+
'''Content filter config in content policy.
|
|
3402
3649
|
|
|
3403
|
-
:param
|
|
3404
|
-
:param
|
|
3650
|
+
:param input_strength: Strength for filters.
|
|
3651
|
+
:param output_strength: Strength for filters.
|
|
3652
|
+
:param type: Type of filter in content policy.
|
|
3405
3653
|
|
|
3406
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-
|
|
3654
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html
|
|
3407
3655
|
:exampleMetadata: fixture=_generated
|
|
3408
3656
|
|
|
3409
3657
|
Example::
|
|
@@ -3412,43 +3660,52 @@ class CfnKnowledgeBase(
|
|
|
3412
3660
|
# The values are placeholders you should change.
|
|
3413
3661
|
from aws_cdk import aws_bedrock as bedrock
|
|
3414
3662
|
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
)
|
|
3663
|
+
content_filter_config_property = bedrock.CfnGuardrail.ContentFilterConfigProperty(
|
|
3664
|
+
input_strength="inputStrength",
|
|
3665
|
+
output_strength="outputStrength",
|
|
3666
|
+
type="type"
|
|
3420
3667
|
)
|
|
3421
3668
|
'''
|
|
3422
3669
|
if __debug__:
|
|
3423
|
-
type_hints = typing.get_type_hints(
|
|
3670
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e931f7f6b53869d60aab0ecda0e56f276982aaf3a1ee755be3434f26d989ebd5)
|
|
3671
|
+
check_type(argname="argument input_strength", value=input_strength, expected_type=type_hints["input_strength"])
|
|
3672
|
+
check_type(argname="argument output_strength", value=output_strength, expected_type=type_hints["output_strength"])
|
|
3424
3673
|
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
3425
|
-
check_type(argname="argument vector_knowledge_base_configuration", value=vector_knowledge_base_configuration, expected_type=type_hints["vector_knowledge_base_configuration"])
|
|
3426
3674
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3675
|
+
"input_strength": input_strength,
|
|
3676
|
+
"output_strength": output_strength,
|
|
3427
3677
|
"type": type,
|
|
3428
|
-
"vector_knowledge_base_configuration": vector_knowledge_base_configuration,
|
|
3429
3678
|
}
|
|
3430
3679
|
|
|
3431
3680
|
@builtins.property
|
|
3432
|
-
def
|
|
3433
|
-
'''
|
|
3681
|
+
def input_strength(self) -> builtins.str:
|
|
3682
|
+
'''Strength for filters.
|
|
3434
3683
|
|
|
3435
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-
|
|
3684
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html#cfn-bedrock-guardrail-contentfilterconfig-inputstrength
|
|
3436
3685
|
'''
|
|
3437
|
-
result = self._values.get("
|
|
3438
|
-
assert result is not None, "Required property '
|
|
3686
|
+
result = self._values.get("input_strength")
|
|
3687
|
+
assert result is not None, "Required property 'input_strength' is missing"
|
|
3439
3688
|
return typing.cast(builtins.str, result)
|
|
3440
3689
|
|
|
3441
3690
|
@builtins.property
|
|
3442
|
-
def
|
|
3443
|
-
|
|
3444
|
-
) -> typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty"]:
|
|
3445
|
-
'''Contains details about the embeddings model that'sused to convert the data source.
|
|
3691
|
+
def output_strength(self) -> builtins.str:
|
|
3692
|
+
'''Strength for filters.
|
|
3446
3693
|
|
|
3447
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-
|
|
3694
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html#cfn-bedrock-guardrail-contentfilterconfig-outputstrength
|
|
3448
3695
|
'''
|
|
3449
|
-
result = self._values.get("
|
|
3450
|
-
assert result is not None, "Required property '
|
|
3451
|
-
return typing.cast(
|
|
3696
|
+
result = self._values.get("output_strength")
|
|
3697
|
+
assert result is not None, "Required property 'output_strength' is missing"
|
|
3698
|
+
return typing.cast(builtins.str, result)
|
|
3699
|
+
|
|
3700
|
+
@builtins.property
|
|
3701
|
+
def type(self) -> builtins.str:
|
|
3702
|
+
'''Type of filter in content policy.
|
|
3703
|
+
|
|
3704
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html#cfn-bedrock-guardrail-contentfilterconfig-type
|
|
3705
|
+
'''
|
|
3706
|
+
result = self._values.get("type")
|
|
3707
|
+
assert result is not None, "Required property 'type' is missing"
|
|
3708
|
+
return typing.cast(builtins.str, result)
|
|
3452
3709
|
|
|
3453
3710
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3454
3711
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -3457,22 +3714,26 @@ class CfnKnowledgeBase(
|
|
|
3457
3714
|
return not (rhs == self)
|
|
3458
3715
|
|
|
3459
3716
|
def __repr__(self) -> str:
|
|
3460
|
-
return "
|
|
3717
|
+
return "ContentFilterConfigProperty(%s)" % ", ".join(
|
|
3461
3718
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
3462
3719
|
)
|
|
3463
3720
|
|
|
3464
3721
|
@jsii.data_type(
|
|
3465
|
-
jsii_type="aws-cdk-lib.aws_bedrock.
|
|
3722
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.ContentPolicyConfigProperty",
|
|
3466
3723
|
jsii_struct_bases=[],
|
|
3467
|
-
name_mapping={"
|
|
3724
|
+
name_mapping={"filters_config": "filtersConfig"},
|
|
3468
3725
|
)
|
|
3469
|
-
class
|
|
3470
|
-
def __init__(
|
|
3471
|
-
|
|
3726
|
+
class ContentPolicyConfigProperty:
|
|
3727
|
+
def __init__(
|
|
3728
|
+
self,
|
|
3729
|
+
*,
|
|
3730
|
+
filters_config: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.ContentFilterConfigProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
3731
|
+
) -> None:
|
|
3732
|
+
'''Content policy config for a guardrail.
|
|
3472
3733
|
|
|
3473
|
-
:param
|
|
3734
|
+
:param filters_config: List of content filter configs in content policy.
|
|
3474
3735
|
|
|
3475
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-
|
|
3736
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentpolicyconfig.html
|
|
3476
3737
|
:exampleMetadata: fixture=_generated
|
|
3477
3738
|
|
|
3478
3739
|
Example::
|
|
@@ -3481,25 +3742,2111 @@ class CfnKnowledgeBase(
|
|
|
3481
3742
|
# The values are placeholders you should change.
|
|
3482
3743
|
from aws_cdk import aws_bedrock as bedrock
|
|
3483
3744
|
|
|
3484
|
-
|
|
3485
|
-
|
|
3745
|
+
content_policy_config_property = bedrock.CfnGuardrail.ContentPolicyConfigProperty(
|
|
3746
|
+
filters_config=[bedrock.CfnGuardrail.ContentFilterConfigProperty(
|
|
3747
|
+
input_strength="inputStrength",
|
|
3748
|
+
output_strength="outputStrength",
|
|
3749
|
+
type="type"
|
|
3750
|
+
)]
|
|
3486
3751
|
)
|
|
3487
3752
|
'''
|
|
3488
3753
|
if __debug__:
|
|
3489
|
-
type_hints = typing.get_type_hints(
|
|
3490
|
-
check_type(argname="argument
|
|
3754
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3c9f736a4ece8c00be77ba5cd1cda628f4fd10884f3d7ed2c668ae9c1c654fb0)
|
|
3755
|
+
check_type(argname="argument filters_config", value=filters_config, expected_type=type_hints["filters_config"])
|
|
3491
3756
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3492
|
-
"
|
|
3757
|
+
"filters_config": filters_config,
|
|
3493
3758
|
}
|
|
3494
3759
|
|
|
3495
3760
|
@builtins.property
|
|
3496
|
-
def
|
|
3497
|
-
|
|
3761
|
+
def filters_config(
|
|
3762
|
+
self,
|
|
3763
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.ContentFilterConfigProperty"]]]:
|
|
3764
|
+
'''List of content filter configs in content policy.
|
|
3498
3765
|
|
|
3499
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-
|
|
3766
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentpolicyconfig.html#cfn-bedrock-guardrail-contentpolicyconfig-filtersconfig
|
|
3500
3767
|
'''
|
|
3501
|
-
result = self._values.get("
|
|
3502
|
-
assert result is not None, "Required property '
|
|
3768
|
+
result = self._values.get("filters_config")
|
|
3769
|
+
assert result is not None, "Required property 'filters_config' is missing"
|
|
3770
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.ContentFilterConfigProperty"]]], result)
|
|
3771
|
+
|
|
3772
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3773
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3774
|
+
|
|
3775
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3776
|
+
return not (rhs == self)
|
|
3777
|
+
|
|
3778
|
+
def __repr__(self) -> str:
|
|
3779
|
+
return "ContentPolicyConfigProperty(%s)" % ", ".join(
|
|
3780
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3781
|
+
)
|
|
3782
|
+
|
|
3783
|
+
@jsii.data_type(
|
|
3784
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.ManagedWordsConfigProperty",
|
|
3785
|
+
jsii_struct_bases=[],
|
|
3786
|
+
name_mapping={"type": "type"},
|
|
3787
|
+
)
|
|
3788
|
+
class ManagedWordsConfigProperty:
|
|
3789
|
+
def __init__(self, *, type: builtins.str) -> None:
|
|
3790
|
+
'''A managed words config.
|
|
3791
|
+
|
|
3792
|
+
:param type: Options for managed words.
|
|
3793
|
+
|
|
3794
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-managedwordsconfig.html
|
|
3795
|
+
:exampleMetadata: fixture=_generated
|
|
3796
|
+
|
|
3797
|
+
Example::
|
|
3798
|
+
|
|
3799
|
+
# The code below shows an example of how to instantiate this type.
|
|
3800
|
+
# The values are placeholders you should change.
|
|
3801
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
3802
|
+
|
|
3803
|
+
managed_words_config_property = bedrock.CfnGuardrail.ManagedWordsConfigProperty(
|
|
3804
|
+
type="type"
|
|
3805
|
+
)
|
|
3806
|
+
'''
|
|
3807
|
+
if __debug__:
|
|
3808
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a4bf7d4d57eaea6d7c62d6852c2666ebfc7a95d0b72269c42fb757f13cdcece6)
|
|
3809
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
3810
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3811
|
+
"type": type,
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3814
|
+
@builtins.property
|
|
3815
|
+
def type(self) -> builtins.str:
|
|
3816
|
+
'''Options for managed words.
|
|
3817
|
+
|
|
3818
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-managedwordsconfig.html#cfn-bedrock-guardrail-managedwordsconfig-type
|
|
3819
|
+
'''
|
|
3820
|
+
result = self._values.get("type")
|
|
3821
|
+
assert result is not None, "Required property 'type' is missing"
|
|
3822
|
+
return typing.cast(builtins.str, result)
|
|
3823
|
+
|
|
3824
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3825
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3826
|
+
|
|
3827
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3828
|
+
return not (rhs == self)
|
|
3829
|
+
|
|
3830
|
+
def __repr__(self) -> str:
|
|
3831
|
+
return "ManagedWordsConfigProperty(%s)" % ", ".join(
|
|
3832
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3833
|
+
)
|
|
3834
|
+
|
|
3835
|
+
@jsii.data_type(
|
|
3836
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.PiiEntityConfigProperty",
|
|
3837
|
+
jsii_struct_bases=[],
|
|
3838
|
+
name_mapping={"action": "action", "type": "type"},
|
|
3839
|
+
)
|
|
3840
|
+
class PiiEntityConfigProperty:
|
|
3841
|
+
def __init__(self, *, action: builtins.str, type: builtins.str) -> None:
|
|
3842
|
+
'''Pii entity configuration.
|
|
3843
|
+
|
|
3844
|
+
:param action: Options for sensitive information action.
|
|
3845
|
+
:param type: The currently supported PII entities.
|
|
3846
|
+
|
|
3847
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-piientityconfig.html
|
|
3848
|
+
:exampleMetadata: fixture=_generated
|
|
3849
|
+
|
|
3850
|
+
Example::
|
|
3851
|
+
|
|
3852
|
+
# The code below shows an example of how to instantiate this type.
|
|
3853
|
+
# The values are placeholders you should change.
|
|
3854
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
3855
|
+
|
|
3856
|
+
pii_entity_config_property = bedrock.CfnGuardrail.PiiEntityConfigProperty(
|
|
3857
|
+
action="action",
|
|
3858
|
+
type="type"
|
|
3859
|
+
)
|
|
3860
|
+
'''
|
|
3861
|
+
if __debug__:
|
|
3862
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b1b637cd24a7601fa9e29e9667a11a4859f00240df5f6c858a1c38c3b51a9ece)
|
|
3863
|
+
check_type(argname="argument action", value=action, expected_type=type_hints["action"])
|
|
3864
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
3865
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3866
|
+
"action": action,
|
|
3867
|
+
"type": type,
|
|
3868
|
+
}
|
|
3869
|
+
|
|
3870
|
+
@builtins.property
|
|
3871
|
+
def action(self) -> builtins.str:
|
|
3872
|
+
'''Options for sensitive information action.
|
|
3873
|
+
|
|
3874
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-piientityconfig.html#cfn-bedrock-guardrail-piientityconfig-action
|
|
3875
|
+
'''
|
|
3876
|
+
result = self._values.get("action")
|
|
3877
|
+
assert result is not None, "Required property 'action' is missing"
|
|
3878
|
+
return typing.cast(builtins.str, result)
|
|
3879
|
+
|
|
3880
|
+
@builtins.property
|
|
3881
|
+
def type(self) -> builtins.str:
|
|
3882
|
+
'''The currently supported PII entities.
|
|
3883
|
+
|
|
3884
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-piientityconfig.html#cfn-bedrock-guardrail-piientityconfig-type
|
|
3885
|
+
'''
|
|
3886
|
+
result = self._values.get("type")
|
|
3887
|
+
assert result is not None, "Required property 'type' is missing"
|
|
3888
|
+
return typing.cast(builtins.str, result)
|
|
3889
|
+
|
|
3890
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3891
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3892
|
+
|
|
3893
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3894
|
+
return not (rhs == self)
|
|
3895
|
+
|
|
3896
|
+
def __repr__(self) -> str:
|
|
3897
|
+
return "PiiEntityConfigProperty(%s)" % ", ".join(
|
|
3898
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3899
|
+
)
|
|
3900
|
+
|
|
3901
|
+
@jsii.data_type(
|
|
3902
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.RegexConfigProperty",
|
|
3903
|
+
jsii_struct_bases=[],
|
|
3904
|
+
name_mapping={
|
|
3905
|
+
"action": "action",
|
|
3906
|
+
"name": "name",
|
|
3907
|
+
"pattern": "pattern",
|
|
3908
|
+
"description": "description",
|
|
3909
|
+
},
|
|
3910
|
+
)
|
|
3911
|
+
class RegexConfigProperty:
|
|
3912
|
+
def __init__(
|
|
3913
|
+
self,
|
|
3914
|
+
*,
|
|
3915
|
+
action: builtins.str,
|
|
3916
|
+
name: builtins.str,
|
|
3917
|
+
pattern: builtins.str,
|
|
3918
|
+
description: typing.Optional[builtins.str] = None,
|
|
3919
|
+
) -> None:
|
|
3920
|
+
'''A regex configuration.
|
|
3921
|
+
|
|
3922
|
+
:param action: Options for sensitive information action.
|
|
3923
|
+
:param name: The regex name.
|
|
3924
|
+
:param pattern: The regex pattern.
|
|
3925
|
+
:param description: The regex description.
|
|
3926
|
+
|
|
3927
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html
|
|
3928
|
+
:exampleMetadata: fixture=_generated
|
|
3929
|
+
|
|
3930
|
+
Example::
|
|
3931
|
+
|
|
3932
|
+
# The code below shows an example of how to instantiate this type.
|
|
3933
|
+
# The values are placeholders you should change.
|
|
3934
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
3935
|
+
|
|
3936
|
+
regex_config_property = bedrock.CfnGuardrail.RegexConfigProperty(
|
|
3937
|
+
action="action",
|
|
3938
|
+
name="name",
|
|
3939
|
+
pattern="pattern",
|
|
3940
|
+
|
|
3941
|
+
# the properties below are optional
|
|
3942
|
+
description="description"
|
|
3943
|
+
)
|
|
3944
|
+
'''
|
|
3945
|
+
if __debug__:
|
|
3946
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6b89e42a3611474b89e78273413fafd42e2ceb034d2f5fa3e3c122fbd7b3f064)
|
|
3947
|
+
check_type(argname="argument action", value=action, expected_type=type_hints["action"])
|
|
3948
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
3949
|
+
check_type(argname="argument pattern", value=pattern, expected_type=type_hints["pattern"])
|
|
3950
|
+
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
3951
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3952
|
+
"action": action,
|
|
3953
|
+
"name": name,
|
|
3954
|
+
"pattern": pattern,
|
|
3955
|
+
}
|
|
3956
|
+
if description is not None:
|
|
3957
|
+
self._values["description"] = description
|
|
3958
|
+
|
|
3959
|
+
@builtins.property
|
|
3960
|
+
def action(self) -> builtins.str:
|
|
3961
|
+
'''Options for sensitive information action.
|
|
3962
|
+
|
|
3963
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html#cfn-bedrock-guardrail-regexconfig-action
|
|
3964
|
+
'''
|
|
3965
|
+
result = self._values.get("action")
|
|
3966
|
+
assert result is not None, "Required property 'action' is missing"
|
|
3967
|
+
return typing.cast(builtins.str, result)
|
|
3968
|
+
|
|
3969
|
+
@builtins.property
|
|
3970
|
+
def name(self) -> builtins.str:
|
|
3971
|
+
'''The regex name.
|
|
3972
|
+
|
|
3973
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html#cfn-bedrock-guardrail-regexconfig-name
|
|
3974
|
+
'''
|
|
3975
|
+
result = self._values.get("name")
|
|
3976
|
+
assert result is not None, "Required property 'name' is missing"
|
|
3977
|
+
return typing.cast(builtins.str, result)
|
|
3978
|
+
|
|
3979
|
+
@builtins.property
|
|
3980
|
+
def pattern(self) -> builtins.str:
|
|
3981
|
+
'''The regex pattern.
|
|
3982
|
+
|
|
3983
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html#cfn-bedrock-guardrail-regexconfig-pattern
|
|
3984
|
+
'''
|
|
3985
|
+
result = self._values.get("pattern")
|
|
3986
|
+
assert result is not None, "Required property 'pattern' is missing"
|
|
3987
|
+
return typing.cast(builtins.str, result)
|
|
3988
|
+
|
|
3989
|
+
@builtins.property
|
|
3990
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
3991
|
+
'''The regex description.
|
|
3992
|
+
|
|
3993
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html#cfn-bedrock-guardrail-regexconfig-description
|
|
3994
|
+
'''
|
|
3995
|
+
result = self._values.get("description")
|
|
3996
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
3997
|
+
|
|
3998
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3999
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
4000
|
+
|
|
4001
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
4002
|
+
return not (rhs == self)
|
|
4003
|
+
|
|
4004
|
+
def __repr__(self) -> str:
|
|
4005
|
+
return "RegexConfigProperty(%s)" % ", ".join(
|
|
4006
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
4007
|
+
)
|
|
4008
|
+
|
|
4009
|
+
@jsii.data_type(
|
|
4010
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.SensitiveInformationPolicyConfigProperty",
|
|
4011
|
+
jsii_struct_bases=[],
|
|
4012
|
+
name_mapping={
|
|
4013
|
+
"pii_entities_config": "piiEntitiesConfig",
|
|
4014
|
+
"regexes_config": "regexesConfig",
|
|
4015
|
+
},
|
|
4016
|
+
)
|
|
4017
|
+
class SensitiveInformationPolicyConfigProperty:
|
|
4018
|
+
def __init__(
|
|
4019
|
+
self,
|
|
4020
|
+
*,
|
|
4021
|
+
pii_entities_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.PiiEntityConfigProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
4022
|
+
regexes_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.RegexConfigProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
4023
|
+
) -> None:
|
|
4024
|
+
'''Sensitive information policy config for a guardrail.
|
|
4025
|
+
|
|
4026
|
+
:param pii_entities_config: List of entities.
|
|
4027
|
+
:param regexes_config: List of regex.
|
|
4028
|
+
|
|
4029
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-sensitiveinformationpolicyconfig.html
|
|
4030
|
+
:exampleMetadata: fixture=_generated
|
|
4031
|
+
|
|
4032
|
+
Example::
|
|
4033
|
+
|
|
4034
|
+
# The code below shows an example of how to instantiate this type.
|
|
4035
|
+
# The values are placeholders you should change.
|
|
4036
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
4037
|
+
|
|
4038
|
+
sensitive_information_policy_config_property = bedrock.CfnGuardrail.SensitiveInformationPolicyConfigProperty(
|
|
4039
|
+
pii_entities_config=[bedrock.CfnGuardrail.PiiEntityConfigProperty(
|
|
4040
|
+
action="action",
|
|
4041
|
+
type="type"
|
|
4042
|
+
)],
|
|
4043
|
+
regexes_config=[bedrock.CfnGuardrail.RegexConfigProperty(
|
|
4044
|
+
action="action",
|
|
4045
|
+
name="name",
|
|
4046
|
+
pattern="pattern",
|
|
4047
|
+
|
|
4048
|
+
# the properties below are optional
|
|
4049
|
+
description="description"
|
|
4050
|
+
)]
|
|
4051
|
+
)
|
|
4052
|
+
'''
|
|
4053
|
+
if __debug__:
|
|
4054
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ce533c46d8cdf8ee409b3343d7148ef4f9260d103d28195f722d007266162d12)
|
|
4055
|
+
check_type(argname="argument pii_entities_config", value=pii_entities_config, expected_type=type_hints["pii_entities_config"])
|
|
4056
|
+
check_type(argname="argument regexes_config", value=regexes_config, expected_type=type_hints["regexes_config"])
|
|
4057
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
4058
|
+
if pii_entities_config is not None:
|
|
4059
|
+
self._values["pii_entities_config"] = pii_entities_config
|
|
4060
|
+
if regexes_config is not None:
|
|
4061
|
+
self._values["regexes_config"] = regexes_config
|
|
4062
|
+
|
|
4063
|
+
@builtins.property
|
|
4064
|
+
def pii_entities_config(
|
|
4065
|
+
self,
|
|
4066
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.PiiEntityConfigProperty"]]]]:
|
|
4067
|
+
'''List of entities.
|
|
4068
|
+
|
|
4069
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-sensitiveinformationpolicyconfig.html#cfn-bedrock-guardrail-sensitiveinformationpolicyconfig-piientitiesconfig
|
|
4070
|
+
'''
|
|
4071
|
+
result = self._values.get("pii_entities_config")
|
|
4072
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.PiiEntityConfigProperty"]]]], result)
|
|
4073
|
+
|
|
4074
|
+
@builtins.property
|
|
4075
|
+
def regexes_config(
|
|
4076
|
+
self,
|
|
4077
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.RegexConfigProperty"]]]]:
|
|
4078
|
+
'''List of regex.
|
|
4079
|
+
|
|
4080
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-sensitiveinformationpolicyconfig.html#cfn-bedrock-guardrail-sensitiveinformationpolicyconfig-regexesconfig
|
|
4081
|
+
'''
|
|
4082
|
+
result = self._values.get("regexes_config")
|
|
4083
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.RegexConfigProperty"]]]], result)
|
|
4084
|
+
|
|
4085
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
4086
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
4087
|
+
|
|
4088
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
4089
|
+
return not (rhs == self)
|
|
4090
|
+
|
|
4091
|
+
def __repr__(self) -> str:
|
|
4092
|
+
return "SensitiveInformationPolicyConfigProperty(%s)" % ", ".join(
|
|
4093
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
4094
|
+
)
|
|
4095
|
+
|
|
4096
|
+
@jsii.data_type(
|
|
4097
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.TopicConfigProperty",
|
|
4098
|
+
jsii_struct_bases=[],
|
|
4099
|
+
name_mapping={
|
|
4100
|
+
"definition": "definition",
|
|
4101
|
+
"name": "name",
|
|
4102
|
+
"type": "type",
|
|
4103
|
+
"examples": "examples",
|
|
4104
|
+
},
|
|
4105
|
+
)
|
|
4106
|
+
class TopicConfigProperty:
|
|
4107
|
+
def __init__(
|
|
4108
|
+
self,
|
|
4109
|
+
*,
|
|
4110
|
+
definition: builtins.str,
|
|
4111
|
+
name: builtins.str,
|
|
4112
|
+
type: builtins.str,
|
|
4113
|
+
examples: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
4114
|
+
) -> None:
|
|
4115
|
+
'''Topic config in topic policy.
|
|
4116
|
+
|
|
4117
|
+
:param definition: Definition of topic in topic policy.
|
|
4118
|
+
:param name: Name of topic in topic policy.
|
|
4119
|
+
:param type: Type of topic in a policy.
|
|
4120
|
+
:param examples: List of text examples.
|
|
4121
|
+
|
|
4122
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html
|
|
4123
|
+
:exampleMetadata: fixture=_generated
|
|
4124
|
+
|
|
4125
|
+
Example::
|
|
4126
|
+
|
|
4127
|
+
# The code below shows an example of how to instantiate this type.
|
|
4128
|
+
# The values are placeholders you should change.
|
|
4129
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
4130
|
+
|
|
4131
|
+
topic_config_property = bedrock.CfnGuardrail.TopicConfigProperty(
|
|
4132
|
+
definition="definition",
|
|
4133
|
+
name="name",
|
|
4134
|
+
type="type",
|
|
4135
|
+
|
|
4136
|
+
# the properties below are optional
|
|
4137
|
+
examples=["examples"]
|
|
4138
|
+
)
|
|
4139
|
+
'''
|
|
4140
|
+
if __debug__:
|
|
4141
|
+
type_hints = typing.get_type_hints(_typecheckingstub__55baba87f7434d59d4b6be04489cbfbd90b857b82944e9437475de8bd648c94c)
|
|
4142
|
+
check_type(argname="argument definition", value=definition, expected_type=type_hints["definition"])
|
|
4143
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
4144
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
4145
|
+
check_type(argname="argument examples", value=examples, expected_type=type_hints["examples"])
|
|
4146
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
4147
|
+
"definition": definition,
|
|
4148
|
+
"name": name,
|
|
4149
|
+
"type": type,
|
|
4150
|
+
}
|
|
4151
|
+
if examples is not None:
|
|
4152
|
+
self._values["examples"] = examples
|
|
4153
|
+
|
|
4154
|
+
@builtins.property
|
|
4155
|
+
def definition(self) -> builtins.str:
|
|
4156
|
+
'''Definition of topic in topic policy.
|
|
4157
|
+
|
|
4158
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html#cfn-bedrock-guardrail-topicconfig-definition
|
|
4159
|
+
'''
|
|
4160
|
+
result = self._values.get("definition")
|
|
4161
|
+
assert result is not None, "Required property 'definition' is missing"
|
|
4162
|
+
return typing.cast(builtins.str, result)
|
|
4163
|
+
|
|
4164
|
+
@builtins.property
|
|
4165
|
+
def name(self) -> builtins.str:
|
|
4166
|
+
'''Name of topic in topic policy.
|
|
4167
|
+
|
|
4168
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html#cfn-bedrock-guardrail-topicconfig-name
|
|
4169
|
+
'''
|
|
4170
|
+
result = self._values.get("name")
|
|
4171
|
+
assert result is not None, "Required property 'name' is missing"
|
|
4172
|
+
return typing.cast(builtins.str, result)
|
|
4173
|
+
|
|
4174
|
+
@builtins.property
|
|
4175
|
+
def type(self) -> builtins.str:
|
|
4176
|
+
'''Type of topic in a policy.
|
|
4177
|
+
|
|
4178
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html#cfn-bedrock-guardrail-topicconfig-type
|
|
4179
|
+
'''
|
|
4180
|
+
result = self._values.get("type")
|
|
4181
|
+
assert result is not None, "Required property 'type' is missing"
|
|
4182
|
+
return typing.cast(builtins.str, result)
|
|
4183
|
+
|
|
4184
|
+
@builtins.property
|
|
4185
|
+
def examples(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
4186
|
+
'''List of text examples.
|
|
4187
|
+
|
|
4188
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html#cfn-bedrock-guardrail-topicconfig-examples
|
|
4189
|
+
'''
|
|
4190
|
+
result = self._values.get("examples")
|
|
4191
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
4192
|
+
|
|
4193
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
4194
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
4195
|
+
|
|
4196
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
4197
|
+
return not (rhs == self)
|
|
4198
|
+
|
|
4199
|
+
def __repr__(self) -> str:
|
|
4200
|
+
return "TopicConfigProperty(%s)" % ", ".join(
|
|
4201
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
4202
|
+
)
|
|
4203
|
+
|
|
4204
|
+
@jsii.data_type(
|
|
4205
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.TopicPolicyConfigProperty",
|
|
4206
|
+
jsii_struct_bases=[],
|
|
4207
|
+
name_mapping={"topics_config": "topicsConfig"},
|
|
4208
|
+
)
|
|
4209
|
+
class TopicPolicyConfigProperty:
|
|
4210
|
+
def __init__(
|
|
4211
|
+
self,
|
|
4212
|
+
*,
|
|
4213
|
+
topics_config: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.TopicConfigProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
4214
|
+
) -> None:
|
|
4215
|
+
'''Topic policy config for a guardrail.
|
|
4216
|
+
|
|
4217
|
+
:param topics_config: List of topic configs in topic policy.
|
|
4218
|
+
|
|
4219
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicpolicyconfig.html
|
|
4220
|
+
:exampleMetadata: fixture=_generated
|
|
4221
|
+
|
|
4222
|
+
Example::
|
|
4223
|
+
|
|
4224
|
+
# The code below shows an example of how to instantiate this type.
|
|
4225
|
+
# The values are placeholders you should change.
|
|
4226
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
4227
|
+
|
|
4228
|
+
topic_policy_config_property = bedrock.CfnGuardrail.TopicPolicyConfigProperty(
|
|
4229
|
+
topics_config=[bedrock.CfnGuardrail.TopicConfigProperty(
|
|
4230
|
+
definition="definition",
|
|
4231
|
+
name="name",
|
|
4232
|
+
type="type",
|
|
4233
|
+
|
|
4234
|
+
# the properties below are optional
|
|
4235
|
+
examples=["examples"]
|
|
4236
|
+
)]
|
|
4237
|
+
)
|
|
4238
|
+
'''
|
|
4239
|
+
if __debug__:
|
|
4240
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a601b9bb5110351c09983ddf7f804dd1b1d64d78dffded374d89618a609277eb)
|
|
4241
|
+
check_type(argname="argument topics_config", value=topics_config, expected_type=type_hints["topics_config"])
|
|
4242
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
4243
|
+
"topics_config": topics_config,
|
|
4244
|
+
}
|
|
4245
|
+
|
|
4246
|
+
@builtins.property
|
|
4247
|
+
def topics_config(
|
|
4248
|
+
self,
|
|
4249
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.TopicConfigProperty"]]]:
|
|
4250
|
+
'''List of topic configs in topic policy.
|
|
4251
|
+
|
|
4252
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicpolicyconfig.html#cfn-bedrock-guardrail-topicpolicyconfig-topicsconfig
|
|
4253
|
+
'''
|
|
4254
|
+
result = self._values.get("topics_config")
|
|
4255
|
+
assert result is not None, "Required property 'topics_config' is missing"
|
|
4256
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.TopicConfigProperty"]]], result)
|
|
4257
|
+
|
|
4258
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
4259
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
4260
|
+
|
|
4261
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
4262
|
+
return not (rhs == self)
|
|
4263
|
+
|
|
4264
|
+
def __repr__(self) -> str:
|
|
4265
|
+
return "TopicPolicyConfigProperty(%s)" % ", ".join(
|
|
4266
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
4267
|
+
)
|
|
4268
|
+
|
|
4269
|
+
@jsii.data_type(
|
|
4270
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.WordConfigProperty",
|
|
4271
|
+
jsii_struct_bases=[],
|
|
4272
|
+
name_mapping={"text": "text"},
|
|
4273
|
+
)
|
|
4274
|
+
class WordConfigProperty:
|
|
4275
|
+
def __init__(self, *, text: builtins.str) -> None:
|
|
4276
|
+
'''A custom word config.
|
|
4277
|
+
|
|
4278
|
+
:param text: The custom word text.
|
|
4279
|
+
|
|
4280
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordconfig.html
|
|
4281
|
+
:exampleMetadata: fixture=_generated
|
|
4282
|
+
|
|
4283
|
+
Example::
|
|
4284
|
+
|
|
4285
|
+
# The code below shows an example of how to instantiate this type.
|
|
4286
|
+
# The values are placeholders you should change.
|
|
4287
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
4288
|
+
|
|
4289
|
+
word_config_property = bedrock.CfnGuardrail.WordConfigProperty(
|
|
4290
|
+
text="text"
|
|
4291
|
+
)
|
|
4292
|
+
'''
|
|
4293
|
+
if __debug__:
|
|
4294
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8d97ba02e51405985a3642a48511f50ab8ebae582cdd068b6dec0252d49b5497)
|
|
4295
|
+
check_type(argname="argument text", value=text, expected_type=type_hints["text"])
|
|
4296
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
4297
|
+
"text": text,
|
|
4298
|
+
}
|
|
4299
|
+
|
|
4300
|
+
@builtins.property
|
|
4301
|
+
def text(self) -> builtins.str:
|
|
4302
|
+
'''The custom word text.
|
|
4303
|
+
|
|
4304
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordconfig.html#cfn-bedrock-guardrail-wordconfig-text
|
|
4305
|
+
'''
|
|
4306
|
+
result = self._values.get("text")
|
|
4307
|
+
assert result is not None, "Required property 'text' is missing"
|
|
4308
|
+
return typing.cast(builtins.str, result)
|
|
4309
|
+
|
|
4310
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
4311
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
4312
|
+
|
|
4313
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
4314
|
+
return not (rhs == self)
|
|
4315
|
+
|
|
4316
|
+
def __repr__(self) -> str:
|
|
4317
|
+
return "WordConfigProperty(%s)" % ", ".join(
|
|
4318
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
4319
|
+
)
|
|
4320
|
+
|
|
4321
|
+
@jsii.data_type(
|
|
4322
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.WordPolicyConfigProperty",
|
|
4323
|
+
jsii_struct_bases=[],
|
|
4324
|
+
name_mapping={
|
|
4325
|
+
"managed_word_lists_config": "managedWordListsConfig",
|
|
4326
|
+
"words_config": "wordsConfig",
|
|
4327
|
+
},
|
|
4328
|
+
)
|
|
4329
|
+
class WordPolicyConfigProperty:
|
|
4330
|
+
def __init__(
|
|
4331
|
+
self,
|
|
4332
|
+
*,
|
|
4333
|
+
managed_word_lists_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.ManagedWordsConfigProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
4334
|
+
words_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.WordConfigProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
4335
|
+
) -> None:
|
|
4336
|
+
'''Word policy config for a guardrail.
|
|
4337
|
+
|
|
4338
|
+
:param managed_word_lists_config: A config for the list of managed words.
|
|
4339
|
+
:param words_config: List of custom word configs.
|
|
4340
|
+
|
|
4341
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordpolicyconfig.html
|
|
4342
|
+
:exampleMetadata: fixture=_generated
|
|
4343
|
+
|
|
4344
|
+
Example::
|
|
4345
|
+
|
|
4346
|
+
# The code below shows an example of how to instantiate this type.
|
|
4347
|
+
# The values are placeholders you should change.
|
|
4348
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
4349
|
+
|
|
4350
|
+
word_policy_config_property = bedrock.CfnGuardrail.WordPolicyConfigProperty(
|
|
4351
|
+
managed_word_lists_config=[bedrock.CfnGuardrail.ManagedWordsConfigProperty(
|
|
4352
|
+
type="type"
|
|
4353
|
+
)],
|
|
4354
|
+
words_config=[bedrock.CfnGuardrail.WordConfigProperty(
|
|
4355
|
+
text="text"
|
|
4356
|
+
)]
|
|
4357
|
+
)
|
|
4358
|
+
'''
|
|
4359
|
+
if __debug__:
|
|
4360
|
+
type_hints = typing.get_type_hints(_typecheckingstub__40e1ce19bae133dd80df92a2b7a2a8185b6ce800337dbf3519f8449ef4f93952)
|
|
4361
|
+
check_type(argname="argument managed_word_lists_config", value=managed_word_lists_config, expected_type=type_hints["managed_word_lists_config"])
|
|
4362
|
+
check_type(argname="argument words_config", value=words_config, expected_type=type_hints["words_config"])
|
|
4363
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
4364
|
+
if managed_word_lists_config is not None:
|
|
4365
|
+
self._values["managed_word_lists_config"] = managed_word_lists_config
|
|
4366
|
+
if words_config is not None:
|
|
4367
|
+
self._values["words_config"] = words_config
|
|
4368
|
+
|
|
4369
|
+
@builtins.property
|
|
4370
|
+
def managed_word_lists_config(
|
|
4371
|
+
self,
|
|
4372
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.ManagedWordsConfigProperty"]]]]:
|
|
4373
|
+
'''A config for the list of managed words.
|
|
4374
|
+
|
|
4375
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordpolicyconfig.html#cfn-bedrock-guardrail-wordpolicyconfig-managedwordlistsconfig
|
|
4376
|
+
'''
|
|
4377
|
+
result = self._values.get("managed_word_lists_config")
|
|
4378
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.ManagedWordsConfigProperty"]]]], result)
|
|
4379
|
+
|
|
4380
|
+
@builtins.property
|
|
4381
|
+
def words_config(
|
|
4382
|
+
self,
|
|
4383
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.WordConfigProperty"]]]]:
|
|
4384
|
+
'''List of custom word configs.
|
|
4385
|
+
|
|
4386
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordpolicyconfig.html#cfn-bedrock-guardrail-wordpolicyconfig-wordsconfig
|
|
4387
|
+
'''
|
|
4388
|
+
result = self._values.get("words_config")
|
|
4389
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.WordConfigProperty"]]]], result)
|
|
4390
|
+
|
|
4391
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
4392
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
4393
|
+
|
|
4394
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
4395
|
+
return not (rhs == self)
|
|
4396
|
+
|
|
4397
|
+
def __repr__(self) -> str:
|
|
4398
|
+
return "WordPolicyConfigProperty(%s)" % ", ".join(
|
|
4399
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
4400
|
+
)
|
|
4401
|
+
|
|
4402
|
+
|
|
4403
|
+
@jsii.data_type(
|
|
4404
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrailProps",
|
|
4405
|
+
jsii_struct_bases=[],
|
|
4406
|
+
name_mapping={
|
|
4407
|
+
"blocked_input_messaging": "blockedInputMessaging",
|
|
4408
|
+
"blocked_outputs_messaging": "blockedOutputsMessaging",
|
|
4409
|
+
"name": "name",
|
|
4410
|
+
"content_policy_config": "contentPolicyConfig",
|
|
4411
|
+
"description": "description",
|
|
4412
|
+
"kms_key_arn": "kmsKeyArn",
|
|
4413
|
+
"sensitive_information_policy_config": "sensitiveInformationPolicyConfig",
|
|
4414
|
+
"tags": "tags",
|
|
4415
|
+
"topic_policy_config": "topicPolicyConfig",
|
|
4416
|
+
"word_policy_config": "wordPolicyConfig",
|
|
4417
|
+
},
|
|
4418
|
+
)
|
|
4419
|
+
class CfnGuardrailProps:
|
|
4420
|
+
def __init__(
|
|
4421
|
+
self,
|
|
4422
|
+
*,
|
|
4423
|
+
blocked_input_messaging: builtins.str,
|
|
4424
|
+
blocked_outputs_messaging: builtins.str,
|
|
4425
|
+
name: builtins.str,
|
|
4426
|
+
content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContentPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4427
|
+
description: typing.Optional[builtins.str] = None,
|
|
4428
|
+
kms_key_arn: typing.Optional[builtins.str] = None,
|
|
4429
|
+
sensitive_information_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.SensitiveInformationPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4430
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4431
|
+
topic_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.TopicPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4432
|
+
word_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.WordPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4433
|
+
) -> None:
|
|
4434
|
+
'''Properties for defining a ``CfnGuardrail``.
|
|
4435
|
+
|
|
4436
|
+
:param blocked_input_messaging: The message to return when the guardrail blocks a prompt.
|
|
4437
|
+
:param blocked_outputs_messaging: The message to return when the guardrail blocks a model response.
|
|
4438
|
+
:param name: The name of the guardrail.
|
|
4439
|
+
:param content_policy_config: Content policy config for a guardrail.
|
|
4440
|
+
:param description: A description of the guardrail.
|
|
4441
|
+
:param kms_key_arn: The ARN of the AWS KMS key used to encrypt the guardrail.
|
|
4442
|
+
:param sensitive_information_policy_config: Sensitive information policy config for a guardrail.
|
|
4443
|
+
:param tags: Metadata that you can assign to a guardrail as key-value pairs. For more information, see the following resources:. - `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_ - `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
|
|
4444
|
+
:param topic_policy_config: Topic policy config for a guardrail.
|
|
4445
|
+
:param word_policy_config: Word policy config for a guardrail.
|
|
4446
|
+
|
|
4447
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html
|
|
4448
|
+
:exampleMetadata: fixture=_generated
|
|
4449
|
+
|
|
4450
|
+
Example::
|
|
4451
|
+
|
|
4452
|
+
# The code below shows an example of how to instantiate this type.
|
|
4453
|
+
# The values are placeholders you should change.
|
|
4454
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
4455
|
+
|
|
4456
|
+
cfn_guardrail_props = bedrock.CfnGuardrailProps(
|
|
4457
|
+
blocked_input_messaging="blockedInputMessaging",
|
|
4458
|
+
blocked_outputs_messaging="blockedOutputsMessaging",
|
|
4459
|
+
name="name",
|
|
4460
|
+
|
|
4461
|
+
# the properties below are optional
|
|
4462
|
+
content_policy_config=bedrock.CfnGuardrail.ContentPolicyConfigProperty(
|
|
4463
|
+
filters_config=[bedrock.CfnGuardrail.ContentFilterConfigProperty(
|
|
4464
|
+
input_strength="inputStrength",
|
|
4465
|
+
output_strength="outputStrength",
|
|
4466
|
+
type="type"
|
|
4467
|
+
)]
|
|
4468
|
+
),
|
|
4469
|
+
description="description",
|
|
4470
|
+
kms_key_arn="kmsKeyArn",
|
|
4471
|
+
sensitive_information_policy_config=bedrock.CfnGuardrail.SensitiveInformationPolicyConfigProperty(
|
|
4472
|
+
pii_entities_config=[bedrock.CfnGuardrail.PiiEntityConfigProperty(
|
|
4473
|
+
action="action",
|
|
4474
|
+
type="type"
|
|
4475
|
+
)],
|
|
4476
|
+
regexes_config=[bedrock.CfnGuardrail.RegexConfigProperty(
|
|
4477
|
+
action="action",
|
|
4478
|
+
name="name",
|
|
4479
|
+
pattern="pattern",
|
|
4480
|
+
|
|
4481
|
+
# the properties below are optional
|
|
4482
|
+
description="description"
|
|
4483
|
+
)]
|
|
4484
|
+
),
|
|
4485
|
+
tags=[CfnTag(
|
|
4486
|
+
key="key",
|
|
4487
|
+
value="value"
|
|
4488
|
+
)],
|
|
4489
|
+
topic_policy_config=bedrock.CfnGuardrail.TopicPolicyConfigProperty(
|
|
4490
|
+
topics_config=[bedrock.CfnGuardrail.TopicConfigProperty(
|
|
4491
|
+
definition="definition",
|
|
4492
|
+
name="name",
|
|
4493
|
+
type="type",
|
|
4494
|
+
|
|
4495
|
+
# the properties below are optional
|
|
4496
|
+
examples=["examples"]
|
|
4497
|
+
)]
|
|
4498
|
+
),
|
|
4499
|
+
word_policy_config=bedrock.CfnGuardrail.WordPolicyConfigProperty(
|
|
4500
|
+
managed_word_lists_config=[bedrock.CfnGuardrail.ManagedWordsConfigProperty(
|
|
4501
|
+
type="type"
|
|
4502
|
+
)],
|
|
4503
|
+
words_config=[bedrock.CfnGuardrail.WordConfigProperty(
|
|
4504
|
+
text="text"
|
|
4505
|
+
)]
|
|
4506
|
+
)
|
|
4507
|
+
)
|
|
4508
|
+
'''
|
|
4509
|
+
if __debug__:
|
|
4510
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e16800cc7473874d0d58b13a772dade51a596e19ff440f95ad243d23606a6cea)
|
|
4511
|
+
check_type(argname="argument blocked_input_messaging", value=blocked_input_messaging, expected_type=type_hints["blocked_input_messaging"])
|
|
4512
|
+
check_type(argname="argument blocked_outputs_messaging", value=blocked_outputs_messaging, expected_type=type_hints["blocked_outputs_messaging"])
|
|
4513
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
4514
|
+
check_type(argname="argument content_policy_config", value=content_policy_config, expected_type=type_hints["content_policy_config"])
|
|
4515
|
+
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
4516
|
+
check_type(argname="argument kms_key_arn", value=kms_key_arn, expected_type=type_hints["kms_key_arn"])
|
|
4517
|
+
check_type(argname="argument sensitive_information_policy_config", value=sensitive_information_policy_config, expected_type=type_hints["sensitive_information_policy_config"])
|
|
4518
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
4519
|
+
check_type(argname="argument topic_policy_config", value=topic_policy_config, expected_type=type_hints["topic_policy_config"])
|
|
4520
|
+
check_type(argname="argument word_policy_config", value=word_policy_config, expected_type=type_hints["word_policy_config"])
|
|
4521
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
4522
|
+
"blocked_input_messaging": blocked_input_messaging,
|
|
4523
|
+
"blocked_outputs_messaging": blocked_outputs_messaging,
|
|
4524
|
+
"name": name,
|
|
4525
|
+
}
|
|
4526
|
+
if content_policy_config is not None:
|
|
4527
|
+
self._values["content_policy_config"] = content_policy_config
|
|
4528
|
+
if description is not None:
|
|
4529
|
+
self._values["description"] = description
|
|
4530
|
+
if kms_key_arn is not None:
|
|
4531
|
+
self._values["kms_key_arn"] = kms_key_arn
|
|
4532
|
+
if sensitive_information_policy_config is not None:
|
|
4533
|
+
self._values["sensitive_information_policy_config"] = sensitive_information_policy_config
|
|
4534
|
+
if tags is not None:
|
|
4535
|
+
self._values["tags"] = tags
|
|
4536
|
+
if topic_policy_config is not None:
|
|
4537
|
+
self._values["topic_policy_config"] = topic_policy_config
|
|
4538
|
+
if word_policy_config is not None:
|
|
4539
|
+
self._values["word_policy_config"] = word_policy_config
|
|
4540
|
+
|
|
4541
|
+
@builtins.property
|
|
4542
|
+
def blocked_input_messaging(self) -> builtins.str:
|
|
4543
|
+
'''The message to return when the guardrail blocks a prompt.
|
|
4544
|
+
|
|
4545
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-blockedinputmessaging
|
|
4546
|
+
'''
|
|
4547
|
+
result = self._values.get("blocked_input_messaging")
|
|
4548
|
+
assert result is not None, "Required property 'blocked_input_messaging' is missing"
|
|
4549
|
+
return typing.cast(builtins.str, result)
|
|
4550
|
+
|
|
4551
|
+
@builtins.property
|
|
4552
|
+
def blocked_outputs_messaging(self) -> builtins.str:
|
|
4553
|
+
'''The message to return when the guardrail blocks a model response.
|
|
4554
|
+
|
|
4555
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-blockedoutputsmessaging
|
|
4556
|
+
'''
|
|
4557
|
+
result = self._values.get("blocked_outputs_messaging")
|
|
4558
|
+
assert result is not None, "Required property 'blocked_outputs_messaging' is missing"
|
|
4559
|
+
return typing.cast(builtins.str, result)
|
|
4560
|
+
|
|
4561
|
+
@builtins.property
|
|
4562
|
+
def name(self) -> builtins.str:
|
|
4563
|
+
'''The name of the guardrail.
|
|
4564
|
+
|
|
4565
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-name
|
|
4566
|
+
'''
|
|
4567
|
+
result = self._values.get("name")
|
|
4568
|
+
assert result is not None, "Required property 'name' is missing"
|
|
4569
|
+
return typing.cast(builtins.str, result)
|
|
4570
|
+
|
|
4571
|
+
@builtins.property
|
|
4572
|
+
def content_policy_config(
|
|
4573
|
+
self,
|
|
4574
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.ContentPolicyConfigProperty]]:
|
|
4575
|
+
'''Content policy config for a guardrail.
|
|
4576
|
+
|
|
4577
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contentpolicyconfig
|
|
4578
|
+
'''
|
|
4579
|
+
result = self._values.get("content_policy_config")
|
|
4580
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.ContentPolicyConfigProperty]], result)
|
|
4581
|
+
|
|
4582
|
+
@builtins.property
|
|
4583
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
4584
|
+
'''A description of the guardrail.
|
|
4585
|
+
|
|
4586
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-description
|
|
4587
|
+
'''
|
|
4588
|
+
result = self._values.get("description")
|
|
4589
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
4590
|
+
|
|
4591
|
+
@builtins.property
|
|
4592
|
+
def kms_key_arn(self) -> typing.Optional[builtins.str]:
|
|
4593
|
+
'''The ARN of the AWS KMS key used to encrypt the guardrail.
|
|
4594
|
+
|
|
4595
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-kmskeyarn
|
|
4596
|
+
'''
|
|
4597
|
+
result = self._values.get("kms_key_arn")
|
|
4598
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
4599
|
+
|
|
4600
|
+
@builtins.property
|
|
4601
|
+
def sensitive_information_policy_config(
|
|
4602
|
+
self,
|
|
4603
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.SensitiveInformationPolicyConfigProperty]]:
|
|
4604
|
+
'''Sensitive information policy config for a guardrail.
|
|
4605
|
+
|
|
4606
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-sensitiveinformationpolicyconfig
|
|
4607
|
+
'''
|
|
4608
|
+
result = self._values.get("sensitive_information_policy_config")
|
|
4609
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.SensitiveInformationPolicyConfigProperty]], result)
|
|
4610
|
+
|
|
4611
|
+
@builtins.property
|
|
4612
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
4613
|
+
'''Metadata that you can assign to a guardrail as key-value pairs. For more information, see the following resources:.
|
|
4614
|
+
|
|
4615
|
+
- `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_
|
|
4616
|
+
- `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
|
|
4617
|
+
|
|
4618
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-tags
|
|
4619
|
+
'''
|
|
4620
|
+
result = self._values.get("tags")
|
|
4621
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
4622
|
+
|
|
4623
|
+
@builtins.property
|
|
4624
|
+
def topic_policy_config(
|
|
4625
|
+
self,
|
|
4626
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.TopicPolicyConfigProperty]]:
|
|
4627
|
+
'''Topic policy config for a guardrail.
|
|
4628
|
+
|
|
4629
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-topicpolicyconfig
|
|
4630
|
+
'''
|
|
4631
|
+
result = self._values.get("topic_policy_config")
|
|
4632
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.TopicPolicyConfigProperty]], result)
|
|
4633
|
+
|
|
4634
|
+
@builtins.property
|
|
4635
|
+
def word_policy_config(
|
|
4636
|
+
self,
|
|
4637
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.WordPolicyConfigProperty]]:
|
|
4638
|
+
'''Word policy config for a guardrail.
|
|
4639
|
+
|
|
4640
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-wordpolicyconfig
|
|
4641
|
+
'''
|
|
4642
|
+
result = self._values.get("word_policy_config")
|
|
4643
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.WordPolicyConfigProperty]], result)
|
|
4644
|
+
|
|
4645
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
4646
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
4647
|
+
|
|
4648
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
4649
|
+
return not (rhs == self)
|
|
4650
|
+
|
|
4651
|
+
def __repr__(self) -> str:
|
|
4652
|
+
return "CfnGuardrailProps(%s)" % ", ".join(
|
|
4653
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
4654
|
+
)
|
|
4655
|
+
|
|
4656
|
+
|
|
4657
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
4658
|
+
class CfnKnowledgeBase(
|
|
4659
|
+
_CfnResource_9df397a6,
|
|
4660
|
+
metaclass=jsii.JSIIMeta,
|
|
4661
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase",
|
|
4662
|
+
):
|
|
4663
|
+
'''Specifies a knowledge base as a resource in a top-level template. Minimally, you must specify the following properties:.
|
|
4664
|
+
|
|
4665
|
+
- Name – Specify a name for the knowledge base.
|
|
4666
|
+
- RoleArn – Specify the Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base. For more information, see `Create a service role for Knowledge base for Amazon Bedrock <https://docs.aws.amazon.com/bedrock/latest/userguide/kb-permissions.html>`_ .
|
|
4667
|
+
- KnowledgeBaseConfiguration – Specify the embeddings configuration of the knowledge base. The following sub-properties are required:
|
|
4668
|
+
- Type – Specify the value ``VECTOR`` .
|
|
4669
|
+
- StorageConfiguration – Specify information about the vector store in which the data source is stored. The following sub-properties are required:
|
|
4670
|
+
- Type – Specify the vector store service that you are using.
|
|
4671
|
+
|
|
4672
|
+
.. epigraph::
|
|
4673
|
+
|
|
4674
|
+
Redis Enterprise Cloud vector stores are currently unsupported in AWS CloudFormation .
|
|
4675
|
+
|
|
4676
|
+
For more information about using knowledge bases in Amazon Bedrock , see `Knowledge base for Amazon Bedrock <https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html>`_ .
|
|
4677
|
+
|
|
4678
|
+
See the *Properties* section below for descriptions of both the required and optional properties.
|
|
4679
|
+
|
|
4680
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-knowledgebase.html
|
|
4681
|
+
:cloudformationResource: AWS::Bedrock::KnowledgeBase
|
|
4682
|
+
:exampleMetadata: fixture=_generated
|
|
4683
|
+
|
|
4684
|
+
Example::
|
|
4685
|
+
|
|
4686
|
+
# The code below shows an example of how to instantiate this type.
|
|
4687
|
+
# The values are placeholders you should change.
|
|
4688
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
4689
|
+
|
|
4690
|
+
cfn_knowledge_base = bedrock.CfnKnowledgeBase(self, "MyCfnKnowledgeBase",
|
|
4691
|
+
knowledge_base_configuration=bedrock.CfnKnowledgeBase.KnowledgeBaseConfigurationProperty(
|
|
4692
|
+
type="type",
|
|
4693
|
+
vector_knowledge_base_configuration=bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty(
|
|
4694
|
+
embedding_model_arn="embeddingModelArn"
|
|
4695
|
+
)
|
|
4696
|
+
),
|
|
4697
|
+
name="name",
|
|
4698
|
+
role_arn="roleArn",
|
|
4699
|
+
storage_configuration=bedrock.CfnKnowledgeBase.StorageConfigurationProperty(
|
|
4700
|
+
type="type",
|
|
4701
|
+
|
|
4702
|
+
# the properties below are optional
|
|
4703
|
+
opensearch_serverless_configuration=bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty(
|
|
4704
|
+
collection_arn="collectionArn",
|
|
4705
|
+
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty(
|
|
4706
|
+
metadata_field="metadataField",
|
|
4707
|
+
text_field="textField",
|
|
4708
|
+
vector_field="vectorField"
|
|
4709
|
+
),
|
|
4710
|
+
vector_index_name="vectorIndexName"
|
|
4711
|
+
),
|
|
4712
|
+
pinecone_configuration=bedrock.CfnKnowledgeBase.PineconeConfigurationProperty(
|
|
4713
|
+
connection_string="connectionString",
|
|
4714
|
+
credentials_secret_arn="credentialsSecretArn",
|
|
4715
|
+
field_mapping=bedrock.CfnKnowledgeBase.PineconeFieldMappingProperty(
|
|
4716
|
+
metadata_field="metadataField",
|
|
4717
|
+
text_field="textField"
|
|
4718
|
+
),
|
|
4719
|
+
|
|
4720
|
+
# the properties below are optional
|
|
4721
|
+
namespace="namespace"
|
|
4722
|
+
),
|
|
4723
|
+
rds_configuration=bedrock.CfnKnowledgeBase.RdsConfigurationProperty(
|
|
4724
|
+
credentials_secret_arn="credentialsSecretArn",
|
|
4725
|
+
database_name="databaseName",
|
|
4726
|
+
field_mapping=bedrock.CfnKnowledgeBase.RdsFieldMappingProperty(
|
|
4727
|
+
metadata_field="metadataField",
|
|
4728
|
+
primary_key_field="primaryKeyField",
|
|
4729
|
+
text_field="textField",
|
|
4730
|
+
vector_field="vectorField"
|
|
4731
|
+
),
|
|
4732
|
+
resource_arn="resourceArn",
|
|
4733
|
+
table_name="tableName"
|
|
4734
|
+
)
|
|
4735
|
+
),
|
|
4736
|
+
|
|
4737
|
+
# the properties below are optional
|
|
4738
|
+
description="description",
|
|
4739
|
+
tags={
|
|
4740
|
+
"tags_key": "tags"
|
|
4741
|
+
}
|
|
4742
|
+
)
|
|
4743
|
+
'''
|
|
4744
|
+
|
|
4745
|
+
def __init__(
|
|
4746
|
+
self,
|
|
4747
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
4748
|
+
id: builtins.str,
|
|
4749
|
+
*,
|
|
4750
|
+
knowledge_base_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.KnowledgeBaseConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
4751
|
+
name: builtins.str,
|
|
4752
|
+
role_arn: builtins.str,
|
|
4753
|
+
storage_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.StorageConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
4754
|
+
description: typing.Optional[builtins.str] = None,
|
|
4755
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
4756
|
+
) -> None:
|
|
4757
|
+
'''
|
|
4758
|
+
:param scope: Scope in which this resource is defined.
|
|
4759
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
4760
|
+
:param knowledge_base_configuration: Contains details about the embeddings configuration of the knowledge base.
|
|
4761
|
+
:param name: The name of the knowledge base.
|
|
4762
|
+
:param role_arn: The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
|
|
4763
|
+
:param storage_configuration: Contains details about the storage configuration of the knowledge base.
|
|
4764
|
+
:param description: The description of the knowledge base.
|
|
4765
|
+
:param tags: Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_ - `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
|
|
4766
|
+
'''
|
|
4767
|
+
if __debug__:
|
|
4768
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6ef81b8dcbedbd76b5a39a6fd5a967ba49aa887b63aad45e2bc246c96c7abcec)
|
|
4769
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
4770
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
4771
|
+
props = CfnKnowledgeBaseProps(
|
|
4772
|
+
knowledge_base_configuration=knowledge_base_configuration,
|
|
4773
|
+
name=name,
|
|
4774
|
+
role_arn=role_arn,
|
|
4775
|
+
storage_configuration=storage_configuration,
|
|
4776
|
+
description=description,
|
|
4777
|
+
tags=tags,
|
|
4778
|
+
)
|
|
4779
|
+
|
|
4780
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
4781
|
+
|
|
4782
|
+
@jsii.member(jsii_name="inspect")
|
|
4783
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
4784
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
4785
|
+
|
|
4786
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
4787
|
+
'''
|
|
4788
|
+
if __debug__:
|
|
4789
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ff4bc276c76fa89d7e7e13dc3bbd6542bf9248bddf93da183855dfef109357e1)
|
|
4790
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
4791
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
4792
|
+
|
|
4793
|
+
@jsii.member(jsii_name="renderProperties")
|
|
4794
|
+
def _render_properties(
|
|
4795
|
+
self,
|
|
4796
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
4797
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
4798
|
+
'''
|
|
4799
|
+
:param props: -
|
|
4800
|
+
'''
|
|
4801
|
+
if __debug__:
|
|
4802
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ba3c6a8c48301959ccf4c8e325f203936e57edbf8199458a5d3f47355924370f)
|
|
4803
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
4804
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
4805
|
+
|
|
4806
|
+
@jsii.python.classproperty
|
|
4807
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
4808
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
4809
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
4810
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
4811
|
+
|
|
4812
|
+
@builtins.property
|
|
4813
|
+
@jsii.member(jsii_name="attrCreatedAt")
|
|
4814
|
+
def attr_created_at(self) -> builtins.str:
|
|
4815
|
+
'''The time at which the knowledge base was created.
|
|
4816
|
+
|
|
4817
|
+
:cloudformationAttribute: CreatedAt
|
|
4818
|
+
'''
|
|
4819
|
+
return typing.cast(builtins.str, jsii.get(self, "attrCreatedAt"))
|
|
4820
|
+
|
|
4821
|
+
@builtins.property
|
|
4822
|
+
@jsii.member(jsii_name="attrFailureReasons")
|
|
4823
|
+
def attr_failure_reasons(self) -> typing.List[builtins.str]:
|
|
4824
|
+
'''A list of reasons that the API operation on the knowledge base failed.
|
|
4825
|
+
|
|
4826
|
+
:cloudformationAttribute: FailureReasons
|
|
4827
|
+
'''
|
|
4828
|
+
return typing.cast(typing.List[builtins.str], jsii.get(self, "attrFailureReasons"))
|
|
4829
|
+
|
|
4830
|
+
@builtins.property
|
|
4831
|
+
@jsii.member(jsii_name="attrKnowledgeBaseArn")
|
|
4832
|
+
def attr_knowledge_base_arn(self) -> builtins.str:
|
|
4833
|
+
'''The Amazon Resource Name (ARN) of the knowledge base.
|
|
4834
|
+
|
|
4835
|
+
:cloudformationAttribute: KnowledgeBaseArn
|
|
4836
|
+
'''
|
|
4837
|
+
return typing.cast(builtins.str, jsii.get(self, "attrKnowledgeBaseArn"))
|
|
4838
|
+
|
|
4839
|
+
@builtins.property
|
|
4840
|
+
@jsii.member(jsii_name="attrKnowledgeBaseId")
|
|
4841
|
+
def attr_knowledge_base_id(self) -> builtins.str:
|
|
4842
|
+
'''The unique identifier of the knowledge base.
|
|
4843
|
+
|
|
4844
|
+
:cloudformationAttribute: KnowledgeBaseId
|
|
4845
|
+
'''
|
|
4846
|
+
return typing.cast(builtins.str, jsii.get(self, "attrKnowledgeBaseId"))
|
|
4847
|
+
|
|
4848
|
+
@builtins.property
|
|
4849
|
+
@jsii.member(jsii_name="attrStatus")
|
|
4850
|
+
def attr_status(self) -> builtins.str:
|
|
4851
|
+
'''The status of the knowledge base.
|
|
4852
|
+
|
|
4853
|
+
:cloudformationAttribute: Status
|
|
4854
|
+
'''
|
|
4855
|
+
return typing.cast(builtins.str, jsii.get(self, "attrStatus"))
|
|
4856
|
+
|
|
4857
|
+
@builtins.property
|
|
4858
|
+
@jsii.member(jsii_name="attrUpdatedAt")
|
|
4859
|
+
def attr_updated_at(self) -> builtins.str:
|
|
4860
|
+
'''The time at which the knowledge base was last updated.
|
|
4861
|
+
|
|
4862
|
+
:cloudformationAttribute: UpdatedAt
|
|
4863
|
+
'''
|
|
4864
|
+
return typing.cast(builtins.str, jsii.get(self, "attrUpdatedAt"))
|
|
4865
|
+
|
|
4866
|
+
@builtins.property
|
|
4867
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
4868
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
4869
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
4870
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
4871
|
+
|
|
4872
|
+
@builtins.property
|
|
4873
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
4874
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
4875
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
4876
|
+
|
|
4877
|
+
@builtins.property
|
|
4878
|
+
@jsii.member(jsii_name="knowledgeBaseConfiguration")
|
|
4879
|
+
def knowledge_base_configuration(
|
|
4880
|
+
self,
|
|
4881
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.KnowledgeBaseConfigurationProperty"]:
|
|
4882
|
+
'''Contains details about the embeddings configuration of the knowledge base.'''
|
|
4883
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.KnowledgeBaseConfigurationProperty"], jsii.get(self, "knowledgeBaseConfiguration"))
|
|
4884
|
+
|
|
4885
|
+
@knowledge_base_configuration.setter
|
|
4886
|
+
def knowledge_base_configuration(
|
|
4887
|
+
self,
|
|
4888
|
+
value: typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.KnowledgeBaseConfigurationProperty"],
|
|
4889
|
+
) -> None:
|
|
4890
|
+
if __debug__:
|
|
4891
|
+
type_hints = typing.get_type_hints(_typecheckingstub__cc53309d6eb9442404b7a33330dfd3740f0c9d24afff9f19814de1a0a0e51d32)
|
|
4892
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
4893
|
+
jsii.set(self, "knowledgeBaseConfiguration", value)
|
|
4894
|
+
|
|
4895
|
+
@builtins.property
|
|
4896
|
+
@jsii.member(jsii_name="name")
|
|
4897
|
+
def name(self) -> builtins.str:
|
|
4898
|
+
'''The name of the knowledge base.'''
|
|
4899
|
+
return typing.cast(builtins.str, jsii.get(self, "name"))
|
|
4900
|
+
|
|
4901
|
+
@name.setter
|
|
4902
|
+
def name(self, value: builtins.str) -> None:
|
|
4903
|
+
if __debug__:
|
|
4904
|
+
type_hints = typing.get_type_hints(_typecheckingstub__98ce011ed3a47084236afba28b5e5d0da34db483b792c0f0dd621b409474b6fb)
|
|
4905
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
4906
|
+
jsii.set(self, "name", value)
|
|
4907
|
+
|
|
4908
|
+
@builtins.property
|
|
4909
|
+
@jsii.member(jsii_name="roleArn")
|
|
4910
|
+
def role_arn(self) -> builtins.str:
|
|
4911
|
+
'''The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.'''
|
|
4912
|
+
return typing.cast(builtins.str, jsii.get(self, "roleArn"))
|
|
4913
|
+
|
|
4914
|
+
@role_arn.setter
|
|
4915
|
+
def role_arn(self, value: builtins.str) -> None:
|
|
4916
|
+
if __debug__:
|
|
4917
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e6281f2d1ed9a2f71b02754159fe6b2d8c70d3527e97d2d060434dc3483f2ad5)
|
|
4918
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
4919
|
+
jsii.set(self, "roleArn", value)
|
|
4920
|
+
|
|
4921
|
+
@builtins.property
|
|
4922
|
+
@jsii.member(jsii_name="storageConfiguration")
|
|
4923
|
+
def storage_configuration(
|
|
4924
|
+
self,
|
|
4925
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.StorageConfigurationProperty"]:
|
|
4926
|
+
'''Contains details about the storage configuration of the knowledge base.'''
|
|
4927
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.StorageConfigurationProperty"], jsii.get(self, "storageConfiguration"))
|
|
4928
|
+
|
|
4929
|
+
@storage_configuration.setter
|
|
4930
|
+
def storage_configuration(
|
|
4931
|
+
self,
|
|
4932
|
+
value: typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.StorageConfigurationProperty"],
|
|
4933
|
+
) -> None:
|
|
4934
|
+
if __debug__:
|
|
4935
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9c3409dc5fcb9799e2f638dda4e66d2391cf6984b3e10eb29b36e85981cfc59b)
|
|
4936
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
4937
|
+
jsii.set(self, "storageConfiguration", value)
|
|
4938
|
+
|
|
4939
|
+
@builtins.property
|
|
4940
|
+
@jsii.member(jsii_name="description")
|
|
4941
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
4942
|
+
'''The description of the knowledge base.'''
|
|
4943
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
|
|
4944
|
+
|
|
4945
|
+
@description.setter
|
|
4946
|
+
def description(self, value: typing.Optional[builtins.str]) -> None:
|
|
4947
|
+
if __debug__:
|
|
4948
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f9fef7f262d2bad58c7f37c90b8756dd028b772a93aa036a4caf0c9565a7fff1)
|
|
4949
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
4950
|
+
jsii.set(self, "description", value)
|
|
4951
|
+
|
|
4952
|
+
@builtins.property
|
|
4953
|
+
@jsii.member(jsii_name="tags")
|
|
4954
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
4955
|
+
'''Metadata that you can assign to a resource as key-value pairs.
|
|
4956
|
+
|
|
4957
|
+
For more information, see the following resources:.
|
|
4958
|
+
'''
|
|
4959
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], jsii.get(self, "tags"))
|
|
4960
|
+
|
|
4961
|
+
@tags.setter
|
|
4962
|
+
def tags(
|
|
4963
|
+
self,
|
|
4964
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
4965
|
+
) -> None:
|
|
4966
|
+
if __debug__:
|
|
4967
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3aaa5f9544be44cbc2ddb7d96026222438266e370aa05113a01af8f251b7286f)
|
|
4968
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
4969
|
+
jsii.set(self, "tags", value)
|
|
4970
|
+
|
|
4971
|
+
@jsii.data_type(
|
|
4972
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.KnowledgeBaseConfigurationProperty",
|
|
4973
|
+
jsii_struct_bases=[],
|
|
4974
|
+
name_mapping={
|
|
4975
|
+
"type": "type",
|
|
4976
|
+
"vector_knowledge_base_configuration": "vectorKnowledgeBaseConfiguration",
|
|
4977
|
+
},
|
|
4978
|
+
)
|
|
4979
|
+
class KnowledgeBaseConfigurationProperty:
|
|
4980
|
+
def __init__(
|
|
4981
|
+
self,
|
|
4982
|
+
*,
|
|
4983
|
+
type: builtins.str,
|
|
4984
|
+
vector_knowledge_base_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
4985
|
+
) -> None:
|
|
4986
|
+
'''Contains details about the embeddings configuration of the knowledge base.
|
|
4987
|
+
|
|
4988
|
+
:param type: The type of data that the data source is converted into for the knowledge base.
|
|
4989
|
+
:param vector_knowledge_base_configuration: Contains details about the embeddings model that'sused to convert the data source.
|
|
4990
|
+
|
|
4991
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-knowledgebaseconfiguration.html
|
|
4992
|
+
:exampleMetadata: fixture=_generated
|
|
4993
|
+
|
|
4994
|
+
Example::
|
|
4995
|
+
|
|
4996
|
+
# The code below shows an example of how to instantiate this type.
|
|
4997
|
+
# The values are placeholders you should change.
|
|
4998
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
4999
|
+
|
|
5000
|
+
knowledge_base_configuration_property = bedrock.CfnKnowledgeBase.KnowledgeBaseConfigurationProperty(
|
|
5001
|
+
type="type",
|
|
5002
|
+
vector_knowledge_base_configuration=bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty(
|
|
5003
|
+
embedding_model_arn="embeddingModelArn"
|
|
5004
|
+
)
|
|
5005
|
+
)
|
|
5006
|
+
'''
|
|
5007
|
+
if __debug__:
|
|
5008
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f2ca26f28cc4cf3a289e62f58643faf6a7d98ea3e55e7ff4f0f77530fa0294b4)
|
|
5009
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
5010
|
+
check_type(argname="argument vector_knowledge_base_configuration", value=vector_knowledge_base_configuration, expected_type=type_hints["vector_knowledge_base_configuration"])
|
|
5011
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
5012
|
+
"type": type,
|
|
5013
|
+
"vector_knowledge_base_configuration": vector_knowledge_base_configuration,
|
|
5014
|
+
}
|
|
5015
|
+
|
|
5016
|
+
@builtins.property
|
|
5017
|
+
def type(self) -> builtins.str:
|
|
5018
|
+
'''The type of data that the data source is converted into for the knowledge base.
|
|
5019
|
+
|
|
5020
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-knowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-knowledgebaseconfiguration-type
|
|
5021
|
+
'''
|
|
5022
|
+
result = self._values.get("type")
|
|
5023
|
+
assert result is not None, "Required property 'type' is missing"
|
|
5024
|
+
return typing.cast(builtins.str, result)
|
|
5025
|
+
|
|
5026
|
+
@builtins.property
|
|
5027
|
+
def vector_knowledge_base_configuration(
|
|
5028
|
+
self,
|
|
5029
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty"]:
|
|
5030
|
+
'''Contains details about the embeddings model that'sused to convert the data source.
|
|
5031
|
+
|
|
5032
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-knowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-knowledgebaseconfiguration-vectorknowledgebaseconfiguration
|
|
5033
|
+
'''
|
|
5034
|
+
result = self._values.get("vector_knowledge_base_configuration")
|
|
5035
|
+
assert result is not None, "Required property 'vector_knowledge_base_configuration' is missing"
|
|
5036
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty"], result)
|
|
5037
|
+
|
|
5038
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
5039
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
5040
|
+
|
|
5041
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
5042
|
+
return not (rhs == self)
|
|
5043
|
+
|
|
5044
|
+
def __repr__(self) -> str:
|
|
5045
|
+
return "KnowledgeBaseConfigurationProperty(%s)" % ", ".join(
|
|
5046
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
5047
|
+
)
|
|
5048
|
+
|
|
5049
|
+
@jsii.data_type(
|
|
5050
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty",
|
|
5051
|
+
jsii_struct_bases=[],
|
|
5052
|
+
name_mapping={
|
|
5053
|
+
"collection_arn": "collectionArn",
|
|
5054
|
+
"field_mapping": "fieldMapping",
|
|
5055
|
+
"vector_index_name": "vectorIndexName",
|
|
5056
|
+
},
|
|
5057
|
+
)
|
|
5058
|
+
class OpenSearchServerlessConfigurationProperty:
|
|
5059
|
+
def __init__(
|
|
5060
|
+
self,
|
|
5061
|
+
*,
|
|
5062
|
+
collection_arn: builtins.str,
|
|
5063
|
+
field_mapping: typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
5064
|
+
vector_index_name: builtins.str,
|
|
5065
|
+
) -> None:
|
|
5066
|
+
'''Contains details about the storage configuration of the knowledge base in Amazon OpenSearch Service.
|
|
5067
|
+
|
|
5068
|
+
For more information, see `Create a vector index in Amazon OpenSearch Service <https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-oss.html>`_ .
|
|
5069
|
+
|
|
5070
|
+
:param collection_arn: The Amazon Resource Name (ARN) of the OpenSearch Service vector store.
|
|
5071
|
+
:param field_mapping: Contains the names of the fields to which to map information about the vector store.
|
|
5072
|
+
:param vector_index_name: The name of the vector store.
|
|
5073
|
+
|
|
5074
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchserverlessconfiguration.html
|
|
5075
|
+
:exampleMetadata: fixture=_generated
|
|
5076
|
+
|
|
5077
|
+
Example::
|
|
5078
|
+
|
|
5079
|
+
# The code below shows an example of how to instantiate this type.
|
|
5080
|
+
# The values are placeholders you should change.
|
|
5081
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
5082
|
+
|
|
5083
|
+
open_search_serverless_configuration_property = bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty(
|
|
5084
|
+
collection_arn="collectionArn",
|
|
5085
|
+
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty(
|
|
5086
|
+
metadata_field="metadataField",
|
|
5087
|
+
text_field="textField",
|
|
5088
|
+
vector_field="vectorField"
|
|
5089
|
+
),
|
|
5090
|
+
vector_index_name="vectorIndexName"
|
|
5091
|
+
)
|
|
5092
|
+
'''
|
|
5093
|
+
if __debug__:
|
|
5094
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ebf20de0b58d579ecbd2aeccf094bb6c29ae3627a2b4628485b0235e33626d24)
|
|
5095
|
+
check_type(argname="argument collection_arn", value=collection_arn, expected_type=type_hints["collection_arn"])
|
|
5096
|
+
check_type(argname="argument field_mapping", value=field_mapping, expected_type=type_hints["field_mapping"])
|
|
5097
|
+
check_type(argname="argument vector_index_name", value=vector_index_name, expected_type=type_hints["vector_index_name"])
|
|
5098
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
5099
|
+
"collection_arn": collection_arn,
|
|
5100
|
+
"field_mapping": field_mapping,
|
|
5101
|
+
"vector_index_name": vector_index_name,
|
|
5102
|
+
}
|
|
5103
|
+
|
|
5104
|
+
@builtins.property
|
|
5105
|
+
def collection_arn(self) -> builtins.str:
|
|
5106
|
+
'''The Amazon Resource Name (ARN) of the OpenSearch Service vector store.
|
|
5107
|
+
|
|
5108
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchserverlessconfiguration.html#cfn-bedrock-knowledgebase-opensearchserverlessconfiguration-collectionarn
|
|
5109
|
+
'''
|
|
5110
|
+
result = self._values.get("collection_arn")
|
|
5111
|
+
assert result is not None, "Required property 'collection_arn' is missing"
|
|
5112
|
+
return typing.cast(builtins.str, result)
|
|
5113
|
+
|
|
5114
|
+
@builtins.property
|
|
5115
|
+
def field_mapping(
|
|
5116
|
+
self,
|
|
5117
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty"]:
|
|
5118
|
+
'''Contains the names of the fields to which to map information about the vector store.
|
|
5119
|
+
|
|
5120
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchserverlessconfiguration.html#cfn-bedrock-knowledgebase-opensearchserverlessconfiguration-fieldmapping
|
|
5121
|
+
'''
|
|
5122
|
+
result = self._values.get("field_mapping")
|
|
5123
|
+
assert result is not None, "Required property 'field_mapping' is missing"
|
|
5124
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty"], result)
|
|
5125
|
+
|
|
5126
|
+
@builtins.property
|
|
5127
|
+
def vector_index_name(self) -> builtins.str:
|
|
5128
|
+
'''The name of the vector store.
|
|
5129
|
+
|
|
5130
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchserverlessconfiguration.html#cfn-bedrock-knowledgebase-opensearchserverlessconfiguration-vectorindexname
|
|
5131
|
+
'''
|
|
5132
|
+
result = self._values.get("vector_index_name")
|
|
5133
|
+
assert result is not None, "Required property 'vector_index_name' is missing"
|
|
5134
|
+
return typing.cast(builtins.str, result)
|
|
5135
|
+
|
|
5136
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
5137
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
5138
|
+
|
|
5139
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
5140
|
+
return not (rhs == self)
|
|
5141
|
+
|
|
5142
|
+
def __repr__(self) -> str:
|
|
5143
|
+
return "OpenSearchServerlessConfigurationProperty(%s)" % ", ".join(
|
|
5144
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
5145
|
+
)
|
|
5146
|
+
|
|
5147
|
+
@jsii.data_type(
|
|
5148
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty",
|
|
5149
|
+
jsii_struct_bases=[],
|
|
5150
|
+
name_mapping={
|
|
5151
|
+
"metadata_field": "metadataField",
|
|
5152
|
+
"text_field": "textField",
|
|
5153
|
+
"vector_field": "vectorField",
|
|
5154
|
+
},
|
|
5155
|
+
)
|
|
5156
|
+
class OpenSearchServerlessFieldMappingProperty:
|
|
5157
|
+
def __init__(
|
|
5158
|
+
self,
|
|
5159
|
+
*,
|
|
5160
|
+
metadata_field: builtins.str,
|
|
5161
|
+
text_field: builtins.str,
|
|
5162
|
+
vector_field: builtins.str,
|
|
5163
|
+
) -> None:
|
|
5164
|
+
'''Contains the names of the fields to which to map information about the vector store.
|
|
5165
|
+
|
|
5166
|
+
:param metadata_field: The name of the field in which Amazon Bedrock stores metadata about the vector store.
|
|
5167
|
+
: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.
|
|
5168
|
+
:param vector_field: The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
|
|
5169
|
+
|
|
5170
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchserverlessfieldmapping.html
|
|
5171
|
+
:exampleMetadata: fixture=_generated
|
|
5172
|
+
|
|
5173
|
+
Example::
|
|
5174
|
+
|
|
5175
|
+
# The code below shows an example of how to instantiate this type.
|
|
5176
|
+
# The values are placeholders you should change.
|
|
5177
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
5178
|
+
|
|
5179
|
+
open_search_serverless_field_mapping_property = bedrock.CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty(
|
|
5180
|
+
metadata_field="metadataField",
|
|
5181
|
+
text_field="textField",
|
|
5182
|
+
vector_field="vectorField"
|
|
5183
|
+
)
|
|
5184
|
+
'''
|
|
5185
|
+
if __debug__:
|
|
5186
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b8e490584f9c3a514d8b66b508fa651b9eead4ae9af9f9cfa66c2ef1e1e4495f)
|
|
5187
|
+
check_type(argname="argument metadata_field", value=metadata_field, expected_type=type_hints["metadata_field"])
|
|
5188
|
+
check_type(argname="argument text_field", value=text_field, expected_type=type_hints["text_field"])
|
|
5189
|
+
check_type(argname="argument vector_field", value=vector_field, expected_type=type_hints["vector_field"])
|
|
5190
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
5191
|
+
"metadata_field": metadata_field,
|
|
5192
|
+
"text_field": text_field,
|
|
5193
|
+
"vector_field": vector_field,
|
|
5194
|
+
}
|
|
5195
|
+
|
|
5196
|
+
@builtins.property
|
|
5197
|
+
def metadata_field(self) -> builtins.str:
|
|
5198
|
+
'''The name of the field in which Amazon Bedrock stores metadata about the vector store.
|
|
5199
|
+
|
|
5200
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchserverlessfieldmapping.html#cfn-bedrock-knowledgebase-opensearchserverlessfieldmapping-metadatafield
|
|
5201
|
+
'''
|
|
5202
|
+
result = self._values.get("metadata_field")
|
|
5203
|
+
assert result is not None, "Required property 'metadata_field' is missing"
|
|
5204
|
+
return typing.cast(builtins.str, result)
|
|
5205
|
+
|
|
5206
|
+
@builtins.property
|
|
5207
|
+
def text_field(self) -> builtins.str:
|
|
5208
|
+
'''The name of the field in which Amazon Bedrock stores the raw text from your data.
|
|
5209
|
+
|
|
5210
|
+
The text is split according to the chunking strategy you choose.
|
|
5211
|
+
|
|
5212
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchserverlessfieldmapping.html#cfn-bedrock-knowledgebase-opensearchserverlessfieldmapping-textfield
|
|
5213
|
+
'''
|
|
5214
|
+
result = self._values.get("text_field")
|
|
5215
|
+
assert result is not None, "Required property 'text_field' is missing"
|
|
5216
|
+
return typing.cast(builtins.str, result)
|
|
5217
|
+
|
|
5218
|
+
@builtins.property
|
|
5219
|
+
def vector_field(self) -> builtins.str:
|
|
5220
|
+
'''The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
|
|
5221
|
+
|
|
5222
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchserverlessfieldmapping.html#cfn-bedrock-knowledgebase-opensearchserverlessfieldmapping-vectorfield
|
|
5223
|
+
'''
|
|
5224
|
+
result = self._values.get("vector_field")
|
|
5225
|
+
assert result is not None, "Required property 'vector_field' is missing"
|
|
5226
|
+
return typing.cast(builtins.str, result)
|
|
5227
|
+
|
|
5228
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
5229
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
5230
|
+
|
|
5231
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
5232
|
+
return not (rhs == self)
|
|
5233
|
+
|
|
5234
|
+
def __repr__(self) -> str:
|
|
5235
|
+
return "OpenSearchServerlessFieldMappingProperty(%s)" % ", ".join(
|
|
5236
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
5237
|
+
)
|
|
5238
|
+
|
|
5239
|
+
@jsii.data_type(
|
|
5240
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.PineconeConfigurationProperty",
|
|
5241
|
+
jsii_struct_bases=[],
|
|
5242
|
+
name_mapping={
|
|
5243
|
+
"connection_string": "connectionString",
|
|
5244
|
+
"credentials_secret_arn": "credentialsSecretArn",
|
|
5245
|
+
"field_mapping": "fieldMapping",
|
|
5246
|
+
"namespace": "namespace",
|
|
5247
|
+
},
|
|
5248
|
+
)
|
|
5249
|
+
class PineconeConfigurationProperty:
|
|
5250
|
+
def __init__(
|
|
5251
|
+
self,
|
|
5252
|
+
*,
|
|
5253
|
+
connection_string: builtins.str,
|
|
5254
|
+
credentials_secret_arn: builtins.str,
|
|
5255
|
+
field_mapping: typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.PineconeFieldMappingProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
5256
|
+
namespace: typing.Optional[builtins.str] = None,
|
|
5257
|
+
) -> None:
|
|
5258
|
+
'''Contains details about the storage configuration of the knowledge base in Pinecone.
|
|
5259
|
+
|
|
5260
|
+
For more information, see `Create a vector index in Pinecone <https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-pinecone.html>`_ .
|
|
5261
|
+
|
|
5262
|
+
:param connection_string: The endpoint URL for your index management page.
|
|
5263
|
+
:param credentials_secret_arn: The Amazon Resource Name (ARN) of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key.
|
|
5264
|
+
:param field_mapping: Contains the names of the fields to which to map information about the vector store.
|
|
5265
|
+
:param namespace: The namespace to be used to write new data to your database.
|
|
5266
|
+
|
|
5267
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-pineconeconfiguration.html
|
|
5268
|
+
:exampleMetadata: fixture=_generated
|
|
5269
|
+
|
|
5270
|
+
Example::
|
|
5271
|
+
|
|
5272
|
+
# The code below shows an example of how to instantiate this type.
|
|
5273
|
+
# The values are placeholders you should change.
|
|
5274
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
5275
|
+
|
|
5276
|
+
pinecone_configuration_property = bedrock.CfnKnowledgeBase.PineconeConfigurationProperty(
|
|
5277
|
+
connection_string="connectionString",
|
|
5278
|
+
credentials_secret_arn="credentialsSecretArn",
|
|
5279
|
+
field_mapping=bedrock.CfnKnowledgeBase.PineconeFieldMappingProperty(
|
|
5280
|
+
metadata_field="metadataField",
|
|
5281
|
+
text_field="textField"
|
|
5282
|
+
),
|
|
5283
|
+
|
|
5284
|
+
# the properties below are optional
|
|
5285
|
+
namespace="namespace"
|
|
5286
|
+
)
|
|
5287
|
+
'''
|
|
5288
|
+
if __debug__:
|
|
5289
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9425ac4f69df601cd9f6eaef75febf9d71ce4845a6c4629a0c9fd790f5af4075)
|
|
5290
|
+
check_type(argname="argument connection_string", value=connection_string, expected_type=type_hints["connection_string"])
|
|
5291
|
+
check_type(argname="argument credentials_secret_arn", value=credentials_secret_arn, expected_type=type_hints["credentials_secret_arn"])
|
|
5292
|
+
check_type(argname="argument field_mapping", value=field_mapping, expected_type=type_hints["field_mapping"])
|
|
5293
|
+
check_type(argname="argument namespace", value=namespace, expected_type=type_hints["namespace"])
|
|
5294
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
5295
|
+
"connection_string": connection_string,
|
|
5296
|
+
"credentials_secret_arn": credentials_secret_arn,
|
|
5297
|
+
"field_mapping": field_mapping,
|
|
5298
|
+
}
|
|
5299
|
+
if namespace is not None:
|
|
5300
|
+
self._values["namespace"] = namespace
|
|
5301
|
+
|
|
5302
|
+
@builtins.property
|
|
5303
|
+
def connection_string(self) -> builtins.str:
|
|
5304
|
+
'''The endpoint URL for your index management page.
|
|
5305
|
+
|
|
5306
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-pineconeconfiguration.html#cfn-bedrock-knowledgebase-pineconeconfiguration-connectionstring
|
|
5307
|
+
'''
|
|
5308
|
+
result = self._values.get("connection_string")
|
|
5309
|
+
assert result is not None, "Required property 'connection_string' is missing"
|
|
5310
|
+
return typing.cast(builtins.str, result)
|
|
5311
|
+
|
|
5312
|
+
@builtins.property
|
|
5313
|
+
def credentials_secret_arn(self) -> builtins.str:
|
|
5314
|
+
'''The Amazon Resource Name (ARN) of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key.
|
|
5315
|
+
|
|
5316
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-pineconeconfiguration.html#cfn-bedrock-knowledgebase-pineconeconfiguration-credentialssecretarn
|
|
5317
|
+
'''
|
|
5318
|
+
result = self._values.get("credentials_secret_arn")
|
|
5319
|
+
assert result is not None, "Required property 'credentials_secret_arn' is missing"
|
|
5320
|
+
return typing.cast(builtins.str, result)
|
|
5321
|
+
|
|
5322
|
+
@builtins.property
|
|
5323
|
+
def field_mapping(
|
|
5324
|
+
self,
|
|
5325
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.PineconeFieldMappingProperty"]:
|
|
5326
|
+
'''Contains the names of the fields to which to map information about the vector store.
|
|
5327
|
+
|
|
5328
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-pineconeconfiguration.html#cfn-bedrock-knowledgebase-pineconeconfiguration-fieldmapping
|
|
5329
|
+
'''
|
|
5330
|
+
result = self._values.get("field_mapping")
|
|
5331
|
+
assert result is not None, "Required property 'field_mapping' is missing"
|
|
5332
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.PineconeFieldMappingProperty"], result)
|
|
5333
|
+
|
|
5334
|
+
@builtins.property
|
|
5335
|
+
def namespace(self) -> typing.Optional[builtins.str]:
|
|
5336
|
+
'''The namespace to be used to write new data to your database.
|
|
5337
|
+
|
|
5338
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-pineconeconfiguration.html#cfn-bedrock-knowledgebase-pineconeconfiguration-namespace
|
|
5339
|
+
'''
|
|
5340
|
+
result = self._values.get("namespace")
|
|
5341
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
5342
|
+
|
|
5343
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
5344
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
5345
|
+
|
|
5346
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
5347
|
+
return not (rhs == self)
|
|
5348
|
+
|
|
5349
|
+
def __repr__(self) -> str:
|
|
5350
|
+
return "PineconeConfigurationProperty(%s)" % ", ".join(
|
|
5351
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
5352
|
+
)
|
|
5353
|
+
|
|
5354
|
+
@jsii.data_type(
|
|
5355
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.PineconeFieldMappingProperty",
|
|
5356
|
+
jsii_struct_bases=[],
|
|
5357
|
+
name_mapping={"metadata_field": "metadataField", "text_field": "textField"},
|
|
5358
|
+
)
|
|
5359
|
+
class PineconeFieldMappingProperty:
|
|
5360
|
+
def __init__(
|
|
5361
|
+
self,
|
|
5362
|
+
*,
|
|
5363
|
+
metadata_field: builtins.str,
|
|
5364
|
+
text_field: builtins.str,
|
|
5365
|
+
) -> None:
|
|
5366
|
+
'''Contains the names of the fields to which to map information about the vector store.
|
|
5367
|
+
|
|
5368
|
+
:param metadata_field: The name of the field in which Amazon Bedrock stores metadata about the vector store.
|
|
5369
|
+
: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.
|
|
5370
|
+
|
|
5371
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-pineconefieldmapping.html
|
|
5372
|
+
:exampleMetadata: fixture=_generated
|
|
5373
|
+
|
|
5374
|
+
Example::
|
|
5375
|
+
|
|
5376
|
+
# The code below shows an example of how to instantiate this type.
|
|
5377
|
+
# The values are placeholders you should change.
|
|
5378
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
5379
|
+
|
|
5380
|
+
pinecone_field_mapping_property = bedrock.CfnKnowledgeBase.PineconeFieldMappingProperty(
|
|
5381
|
+
metadata_field="metadataField",
|
|
5382
|
+
text_field="textField"
|
|
5383
|
+
)
|
|
5384
|
+
'''
|
|
5385
|
+
if __debug__:
|
|
5386
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2169e124a8314b619ba9fb9f5ea31bc496b6bec20da9f8880770981d442b591d)
|
|
5387
|
+
check_type(argname="argument metadata_field", value=metadata_field, expected_type=type_hints["metadata_field"])
|
|
5388
|
+
check_type(argname="argument text_field", value=text_field, expected_type=type_hints["text_field"])
|
|
5389
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
5390
|
+
"metadata_field": metadata_field,
|
|
5391
|
+
"text_field": text_field,
|
|
5392
|
+
}
|
|
5393
|
+
|
|
5394
|
+
@builtins.property
|
|
5395
|
+
def metadata_field(self) -> builtins.str:
|
|
5396
|
+
'''The name of the field in which Amazon Bedrock stores metadata about the vector store.
|
|
5397
|
+
|
|
5398
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-pineconefieldmapping.html#cfn-bedrock-knowledgebase-pineconefieldmapping-metadatafield
|
|
5399
|
+
'''
|
|
5400
|
+
result = self._values.get("metadata_field")
|
|
5401
|
+
assert result is not None, "Required property 'metadata_field' is missing"
|
|
5402
|
+
return typing.cast(builtins.str, result)
|
|
5403
|
+
|
|
5404
|
+
@builtins.property
|
|
5405
|
+
def text_field(self) -> builtins.str:
|
|
5406
|
+
'''The name of the field in which Amazon Bedrock stores the raw text from your data.
|
|
5407
|
+
|
|
5408
|
+
The text is split according to the chunking strategy you choose.
|
|
5409
|
+
|
|
5410
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-pineconefieldmapping.html#cfn-bedrock-knowledgebase-pineconefieldmapping-textfield
|
|
5411
|
+
'''
|
|
5412
|
+
result = self._values.get("text_field")
|
|
5413
|
+
assert result is not None, "Required property 'text_field' is missing"
|
|
5414
|
+
return typing.cast(builtins.str, result)
|
|
5415
|
+
|
|
5416
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
5417
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
5418
|
+
|
|
5419
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
5420
|
+
return not (rhs == self)
|
|
5421
|
+
|
|
5422
|
+
def __repr__(self) -> str:
|
|
5423
|
+
return "PineconeFieldMappingProperty(%s)" % ", ".join(
|
|
5424
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
5425
|
+
)
|
|
5426
|
+
|
|
5427
|
+
@jsii.data_type(
|
|
5428
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.RdsConfigurationProperty",
|
|
5429
|
+
jsii_struct_bases=[],
|
|
5430
|
+
name_mapping={
|
|
5431
|
+
"credentials_secret_arn": "credentialsSecretArn",
|
|
5432
|
+
"database_name": "databaseName",
|
|
5433
|
+
"field_mapping": "fieldMapping",
|
|
5434
|
+
"resource_arn": "resourceArn",
|
|
5435
|
+
"table_name": "tableName",
|
|
5436
|
+
},
|
|
5437
|
+
)
|
|
5438
|
+
class RdsConfigurationProperty:
|
|
5439
|
+
def __init__(
|
|
5440
|
+
self,
|
|
5441
|
+
*,
|
|
5442
|
+
credentials_secret_arn: builtins.str,
|
|
5443
|
+
database_name: builtins.str,
|
|
5444
|
+
field_mapping: typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.RdsFieldMappingProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
5445
|
+
resource_arn: builtins.str,
|
|
5446
|
+
table_name: builtins.str,
|
|
5447
|
+
) -> None:
|
|
5448
|
+
'''Contains details about the storage configuration of the knowledge base in Amazon RDS.
|
|
5449
|
+
|
|
5450
|
+
For more information, see `Create a vector index in Amazon RDS <https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-rds.html>`_ .
|
|
5451
|
+
|
|
5452
|
+
:param credentials_secret_arn: The Amazon Resource Name (ARN) of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database.
|
|
5453
|
+
:param database_name: The name of your Amazon RDS database.
|
|
5454
|
+
:param field_mapping: Contains the names of the fields to which to map information about the vector store.
|
|
5455
|
+
:param resource_arn: The Amazon Resource Name (ARN) of the vector store.
|
|
5456
|
+
:param table_name: The name of the table in the database.
|
|
5457
|
+
|
|
5458
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-rdsconfiguration.html
|
|
5459
|
+
:exampleMetadata: fixture=_generated
|
|
5460
|
+
|
|
5461
|
+
Example::
|
|
5462
|
+
|
|
5463
|
+
# The code below shows an example of how to instantiate this type.
|
|
5464
|
+
# The values are placeholders you should change.
|
|
5465
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
5466
|
+
|
|
5467
|
+
rds_configuration_property = bedrock.CfnKnowledgeBase.RdsConfigurationProperty(
|
|
5468
|
+
credentials_secret_arn="credentialsSecretArn",
|
|
5469
|
+
database_name="databaseName",
|
|
5470
|
+
field_mapping=bedrock.CfnKnowledgeBase.RdsFieldMappingProperty(
|
|
5471
|
+
metadata_field="metadataField",
|
|
5472
|
+
primary_key_field="primaryKeyField",
|
|
5473
|
+
text_field="textField",
|
|
5474
|
+
vector_field="vectorField"
|
|
5475
|
+
),
|
|
5476
|
+
resource_arn="resourceArn",
|
|
5477
|
+
table_name="tableName"
|
|
5478
|
+
)
|
|
5479
|
+
'''
|
|
5480
|
+
if __debug__:
|
|
5481
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5bd4ba48a510008cefecd72d69bf8fed706c5791b8305e19be10355faa482026)
|
|
5482
|
+
check_type(argname="argument credentials_secret_arn", value=credentials_secret_arn, expected_type=type_hints["credentials_secret_arn"])
|
|
5483
|
+
check_type(argname="argument database_name", value=database_name, expected_type=type_hints["database_name"])
|
|
5484
|
+
check_type(argname="argument field_mapping", value=field_mapping, expected_type=type_hints["field_mapping"])
|
|
5485
|
+
check_type(argname="argument resource_arn", value=resource_arn, expected_type=type_hints["resource_arn"])
|
|
5486
|
+
check_type(argname="argument table_name", value=table_name, expected_type=type_hints["table_name"])
|
|
5487
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
5488
|
+
"credentials_secret_arn": credentials_secret_arn,
|
|
5489
|
+
"database_name": database_name,
|
|
5490
|
+
"field_mapping": field_mapping,
|
|
5491
|
+
"resource_arn": resource_arn,
|
|
5492
|
+
"table_name": table_name,
|
|
5493
|
+
}
|
|
5494
|
+
|
|
5495
|
+
@builtins.property
|
|
5496
|
+
def credentials_secret_arn(self) -> builtins.str:
|
|
5497
|
+
'''The Amazon Resource Name (ARN) of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database.
|
|
5498
|
+
|
|
5499
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-rdsconfiguration.html#cfn-bedrock-knowledgebase-rdsconfiguration-credentialssecretarn
|
|
5500
|
+
'''
|
|
5501
|
+
result = self._values.get("credentials_secret_arn")
|
|
5502
|
+
assert result is not None, "Required property 'credentials_secret_arn' is missing"
|
|
5503
|
+
return typing.cast(builtins.str, result)
|
|
5504
|
+
|
|
5505
|
+
@builtins.property
|
|
5506
|
+
def database_name(self) -> builtins.str:
|
|
5507
|
+
'''The name of your Amazon RDS database.
|
|
5508
|
+
|
|
5509
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-rdsconfiguration.html#cfn-bedrock-knowledgebase-rdsconfiguration-databasename
|
|
5510
|
+
'''
|
|
5511
|
+
result = self._values.get("database_name")
|
|
5512
|
+
assert result is not None, "Required property 'database_name' is missing"
|
|
5513
|
+
return typing.cast(builtins.str, result)
|
|
5514
|
+
|
|
5515
|
+
@builtins.property
|
|
5516
|
+
def field_mapping(
|
|
5517
|
+
self,
|
|
5518
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.RdsFieldMappingProperty"]:
|
|
5519
|
+
'''Contains the names of the fields to which to map information about the vector store.
|
|
5520
|
+
|
|
5521
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-rdsconfiguration.html#cfn-bedrock-knowledgebase-rdsconfiguration-fieldmapping
|
|
5522
|
+
'''
|
|
5523
|
+
result = self._values.get("field_mapping")
|
|
5524
|
+
assert result is not None, "Required property 'field_mapping' is missing"
|
|
5525
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.RdsFieldMappingProperty"], result)
|
|
5526
|
+
|
|
5527
|
+
@builtins.property
|
|
5528
|
+
def resource_arn(self) -> builtins.str:
|
|
5529
|
+
'''The Amazon Resource Name (ARN) of the vector store.
|
|
5530
|
+
|
|
5531
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-rdsconfiguration.html#cfn-bedrock-knowledgebase-rdsconfiguration-resourcearn
|
|
5532
|
+
'''
|
|
5533
|
+
result = self._values.get("resource_arn")
|
|
5534
|
+
assert result is not None, "Required property 'resource_arn' is missing"
|
|
5535
|
+
return typing.cast(builtins.str, result)
|
|
5536
|
+
|
|
5537
|
+
@builtins.property
|
|
5538
|
+
def table_name(self) -> builtins.str:
|
|
5539
|
+
'''The name of the table in the database.
|
|
5540
|
+
|
|
5541
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-rdsconfiguration.html#cfn-bedrock-knowledgebase-rdsconfiguration-tablename
|
|
5542
|
+
'''
|
|
5543
|
+
result = self._values.get("table_name")
|
|
5544
|
+
assert result is not None, "Required property 'table_name' is missing"
|
|
5545
|
+
return typing.cast(builtins.str, result)
|
|
5546
|
+
|
|
5547
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
5548
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
5549
|
+
|
|
5550
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
5551
|
+
return not (rhs == self)
|
|
5552
|
+
|
|
5553
|
+
def __repr__(self) -> str:
|
|
5554
|
+
return "RdsConfigurationProperty(%s)" % ", ".join(
|
|
5555
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
5556
|
+
)
|
|
5557
|
+
|
|
5558
|
+
@jsii.data_type(
|
|
5559
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.RdsFieldMappingProperty",
|
|
5560
|
+
jsii_struct_bases=[],
|
|
5561
|
+
name_mapping={
|
|
5562
|
+
"metadata_field": "metadataField",
|
|
5563
|
+
"primary_key_field": "primaryKeyField",
|
|
5564
|
+
"text_field": "textField",
|
|
5565
|
+
"vector_field": "vectorField",
|
|
5566
|
+
},
|
|
5567
|
+
)
|
|
5568
|
+
class RdsFieldMappingProperty:
|
|
5569
|
+
def __init__(
|
|
5570
|
+
self,
|
|
5571
|
+
*,
|
|
5572
|
+
metadata_field: builtins.str,
|
|
5573
|
+
primary_key_field: builtins.str,
|
|
5574
|
+
text_field: builtins.str,
|
|
5575
|
+
vector_field: builtins.str,
|
|
5576
|
+
) -> None:
|
|
5577
|
+
'''Contains the names of the fields to which to map information about the vector store.
|
|
5578
|
+
|
|
5579
|
+
:param metadata_field: The name of the field in which Amazon Bedrock stores metadata about the vector store.
|
|
5580
|
+
:param primary_key_field: The name of the field in which Amazon Bedrock stores the ID for each entry.
|
|
5581
|
+
: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.
|
|
5582
|
+
:param vector_field: The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
|
|
5583
|
+
|
|
5584
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-rdsfieldmapping.html
|
|
5585
|
+
:exampleMetadata: fixture=_generated
|
|
5586
|
+
|
|
5587
|
+
Example::
|
|
5588
|
+
|
|
5589
|
+
# The code below shows an example of how to instantiate this type.
|
|
5590
|
+
# The values are placeholders you should change.
|
|
5591
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
5592
|
+
|
|
5593
|
+
rds_field_mapping_property = bedrock.CfnKnowledgeBase.RdsFieldMappingProperty(
|
|
5594
|
+
metadata_field="metadataField",
|
|
5595
|
+
primary_key_field="primaryKeyField",
|
|
5596
|
+
text_field="textField",
|
|
5597
|
+
vector_field="vectorField"
|
|
5598
|
+
)
|
|
5599
|
+
'''
|
|
5600
|
+
if __debug__:
|
|
5601
|
+
type_hints = typing.get_type_hints(_typecheckingstub__0060deafed28d2f4c1690bf8921de0b9aca79fe88ac4c5ca53f29b4ef0895537)
|
|
5602
|
+
check_type(argname="argument metadata_field", value=metadata_field, expected_type=type_hints["metadata_field"])
|
|
5603
|
+
check_type(argname="argument primary_key_field", value=primary_key_field, expected_type=type_hints["primary_key_field"])
|
|
5604
|
+
check_type(argname="argument text_field", value=text_field, expected_type=type_hints["text_field"])
|
|
5605
|
+
check_type(argname="argument vector_field", value=vector_field, expected_type=type_hints["vector_field"])
|
|
5606
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
5607
|
+
"metadata_field": metadata_field,
|
|
5608
|
+
"primary_key_field": primary_key_field,
|
|
5609
|
+
"text_field": text_field,
|
|
5610
|
+
"vector_field": vector_field,
|
|
5611
|
+
}
|
|
5612
|
+
|
|
5613
|
+
@builtins.property
|
|
5614
|
+
def metadata_field(self) -> builtins.str:
|
|
5615
|
+
'''The name of the field in which Amazon Bedrock stores metadata about the vector store.
|
|
5616
|
+
|
|
5617
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-rdsfieldmapping.html#cfn-bedrock-knowledgebase-rdsfieldmapping-metadatafield
|
|
5618
|
+
'''
|
|
5619
|
+
result = self._values.get("metadata_field")
|
|
5620
|
+
assert result is not None, "Required property 'metadata_field' is missing"
|
|
5621
|
+
return typing.cast(builtins.str, result)
|
|
5622
|
+
|
|
5623
|
+
@builtins.property
|
|
5624
|
+
def primary_key_field(self) -> builtins.str:
|
|
5625
|
+
'''The name of the field in which Amazon Bedrock stores the ID for each entry.
|
|
5626
|
+
|
|
5627
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-rdsfieldmapping.html#cfn-bedrock-knowledgebase-rdsfieldmapping-primarykeyfield
|
|
5628
|
+
'''
|
|
5629
|
+
result = self._values.get("primary_key_field")
|
|
5630
|
+
assert result is not None, "Required property 'primary_key_field' is missing"
|
|
5631
|
+
return typing.cast(builtins.str, result)
|
|
5632
|
+
|
|
5633
|
+
@builtins.property
|
|
5634
|
+
def text_field(self) -> builtins.str:
|
|
5635
|
+
'''The name of the field in which Amazon Bedrock stores the raw text from your data.
|
|
5636
|
+
|
|
5637
|
+
The text is split according to the chunking strategy you choose.
|
|
5638
|
+
|
|
5639
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-rdsfieldmapping.html#cfn-bedrock-knowledgebase-rdsfieldmapping-textfield
|
|
5640
|
+
'''
|
|
5641
|
+
result = self._values.get("text_field")
|
|
5642
|
+
assert result is not None, "Required property 'text_field' is missing"
|
|
5643
|
+
return typing.cast(builtins.str, result)
|
|
5644
|
+
|
|
5645
|
+
@builtins.property
|
|
5646
|
+
def vector_field(self) -> builtins.str:
|
|
5647
|
+
'''The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
|
|
5648
|
+
|
|
5649
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-rdsfieldmapping.html#cfn-bedrock-knowledgebase-rdsfieldmapping-vectorfield
|
|
5650
|
+
'''
|
|
5651
|
+
result = self._values.get("vector_field")
|
|
5652
|
+
assert result is not None, "Required property 'vector_field' is missing"
|
|
5653
|
+
return typing.cast(builtins.str, result)
|
|
5654
|
+
|
|
5655
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
5656
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
5657
|
+
|
|
5658
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
5659
|
+
return not (rhs == self)
|
|
5660
|
+
|
|
5661
|
+
def __repr__(self) -> str:
|
|
5662
|
+
return "RdsFieldMappingProperty(%s)" % ", ".join(
|
|
5663
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
5664
|
+
)
|
|
5665
|
+
|
|
5666
|
+
@jsii.data_type(
|
|
5667
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.StorageConfigurationProperty",
|
|
5668
|
+
jsii_struct_bases=[],
|
|
5669
|
+
name_mapping={
|
|
5670
|
+
"type": "type",
|
|
5671
|
+
"opensearch_serverless_configuration": "opensearchServerlessConfiguration",
|
|
5672
|
+
"pinecone_configuration": "pineconeConfiguration",
|
|
5673
|
+
"rds_configuration": "rdsConfiguration",
|
|
5674
|
+
},
|
|
5675
|
+
)
|
|
5676
|
+
class StorageConfigurationProperty:
|
|
5677
|
+
def __init__(
|
|
5678
|
+
self,
|
|
5679
|
+
*,
|
|
5680
|
+
type: builtins.str,
|
|
5681
|
+
opensearch_serverless_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5682
|
+
pinecone_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.PineconeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5683
|
+
rds_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.RdsConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5684
|
+
) -> None:
|
|
5685
|
+
'''Contains the storage configuration of the knowledge base.
|
|
5686
|
+
|
|
5687
|
+
:param type: The vector store service in which the knowledge base is stored.
|
|
5688
|
+
:param opensearch_serverless_configuration: Contains the storage configuration of the knowledge base in Amazon OpenSearch Service.
|
|
5689
|
+
:param pinecone_configuration: Contains the storage configuration of the knowledge base in Pinecone.
|
|
5690
|
+
: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>`_ .
|
|
5691
|
+
|
|
5692
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-storageconfiguration.html
|
|
5693
|
+
:exampleMetadata: fixture=_generated
|
|
5694
|
+
|
|
5695
|
+
Example::
|
|
5696
|
+
|
|
5697
|
+
# The code below shows an example of how to instantiate this type.
|
|
5698
|
+
# The values are placeholders you should change.
|
|
5699
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
5700
|
+
|
|
5701
|
+
storage_configuration_property = bedrock.CfnKnowledgeBase.StorageConfigurationProperty(
|
|
5702
|
+
type="type",
|
|
5703
|
+
|
|
5704
|
+
# the properties below are optional
|
|
5705
|
+
opensearch_serverless_configuration=bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty(
|
|
5706
|
+
collection_arn="collectionArn",
|
|
5707
|
+
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty(
|
|
5708
|
+
metadata_field="metadataField",
|
|
5709
|
+
text_field="textField",
|
|
5710
|
+
vector_field="vectorField"
|
|
5711
|
+
),
|
|
5712
|
+
vector_index_name="vectorIndexName"
|
|
5713
|
+
),
|
|
5714
|
+
pinecone_configuration=bedrock.CfnKnowledgeBase.PineconeConfigurationProperty(
|
|
5715
|
+
connection_string="connectionString",
|
|
5716
|
+
credentials_secret_arn="credentialsSecretArn",
|
|
5717
|
+
field_mapping=bedrock.CfnKnowledgeBase.PineconeFieldMappingProperty(
|
|
5718
|
+
metadata_field="metadataField",
|
|
5719
|
+
text_field="textField"
|
|
5720
|
+
),
|
|
5721
|
+
|
|
5722
|
+
# the properties below are optional
|
|
5723
|
+
namespace="namespace"
|
|
5724
|
+
),
|
|
5725
|
+
rds_configuration=bedrock.CfnKnowledgeBase.RdsConfigurationProperty(
|
|
5726
|
+
credentials_secret_arn="credentialsSecretArn",
|
|
5727
|
+
database_name="databaseName",
|
|
5728
|
+
field_mapping=bedrock.CfnKnowledgeBase.RdsFieldMappingProperty(
|
|
5729
|
+
metadata_field="metadataField",
|
|
5730
|
+
primary_key_field="primaryKeyField",
|
|
5731
|
+
text_field="textField",
|
|
5732
|
+
vector_field="vectorField"
|
|
5733
|
+
),
|
|
5734
|
+
resource_arn="resourceArn",
|
|
5735
|
+
table_name="tableName"
|
|
5736
|
+
)
|
|
5737
|
+
)
|
|
5738
|
+
'''
|
|
5739
|
+
if __debug__:
|
|
5740
|
+
type_hints = typing.get_type_hints(_typecheckingstub__fa4cccae88d65689f5f3cabcb8393a082af16eb90d7613332a03867c32272af4)
|
|
5741
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
5742
|
+
check_type(argname="argument opensearch_serverless_configuration", value=opensearch_serverless_configuration, expected_type=type_hints["opensearch_serverless_configuration"])
|
|
5743
|
+
check_type(argname="argument pinecone_configuration", value=pinecone_configuration, expected_type=type_hints["pinecone_configuration"])
|
|
5744
|
+
check_type(argname="argument rds_configuration", value=rds_configuration, expected_type=type_hints["rds_configuration"])
|
|
5745
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
5746
|
+
"type": type,
|
|
5747
|
+
}
|
|
5748
|
+
if opensearch_serverless_configuration is not None:
|
|
5749
|
+
self._values["opensearch_serverless_configuration"] = opensearch_serverless_configuration
|
|
5750
|
+
if pinecone_configuration is not None:
|
|
5751
|
+
self._values["pinecone_configuration"] = pinecone_configuration
|
|
5752
|
+
if rds_configuration is not None:
|
|
5753
|
+
self._values["rds_configuration"] = rds_configuration
|
|
5754
|
+
|
|
5755
|
+
@builtins.property
|
|
5756
|
+
def type(self) -> builtins.str:
|
|
5757
|
+
'''The vector store service in which the knowledge base is stored.
|
|
5758
|
+
|
|
5759
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-storageconfiguration.html#cfn-bedrock-knowledgebase-storageconfiguration-type
|
|
5760
|
+
'''
|
|
5761
|
+
result = self._values.get("type")
|
|
5762
|
+
assert result is not None, "Required property 'type' is missing"
|
|
5763
|
+
return typing.cast(builtins.str, result)
|
|
5764
|
+
|
|
5765
|
+
@builtins.property
|
|
5766
|
+
def opensearch_serverless_configuration(
|
|
5767
|
+
self,
|
|
5768
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty"]]:
|
|
5769
|
+
'''Contains the storage configuration of the knowledge base in Amazon OpenSearch Service.
|
|
5770
|
+
|
|
5771
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-storageconfiguration.html#cfn-bedrock-knowledgebase-storageconfiguration-opensearchserverlessconfiguration
|
|
5772
|
+
'''
|
|
5773
|
+
result = self._values.get("opensearch_serverless_configuration")
|
|
5774
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty"]], result)
|
|
5775
|
+
|
|
5776
|
+
@builtins.property
|
|
5777
|
+
def pinecone_configuration(
|
|
5778
|
+
self,
|
|
5779
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.PineconeConfigurationProperty"]]:
|
|
5780
|
+
'''Contains the storage configuration of the knowledge base in Pinecone.
|
|
5781
|
+
|
|
5782
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-storageconfiguration.html#cfn-bedrock-knowledgebase-storageconfiguration-pineconeconfiguration
|
|
5783
|
+
'''
|
|
5784
|
+
result = self._values.get("pinecone_configuration")
|
|
5785
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.PineconeConfigurationProperty"]], result)
|
|
5786
|
+
|
|
5787
|
+
@builtins.property
|
|
5788
|
+
def rds_configuration(
|
|
5789
|
+
self,
|
|
5790
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.RdsConfigurationProperty"]]:
|
|
5791
|
+
'''Contains details about the storage configuration of the knowledge base in Amazon RDS.
|
|
5792
|
+
|
|
5793
|
+
For more information, see `Create a vector index in Amazon RDS <https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-rds.html>`_ .
|
|
5794
|
+
|
|
5795
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-storageconfiguration.html#cfn-bedrock-knowledgebase-storageconfiguration-rdsconfiguration
|
|
5796
|
+
'''
|
|
5797
|
+
result = self._values.get("rds_configuration")
|
|
5798
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.RdsConfigurationProperty"]], result)
|
|
5799
|
+
|
|
5800
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
5801
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
5802
|
+
|
|
5803
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
5804
|
+
return not (rhs == self)
|
|
5805
|
+
|
|
5806
|
+
def __repr__(self) -> str:
|
|
5807
|
+
return "StorageConfigurationProperty(%s)" % ", ".join(
|
|
5808
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
5809
|
+
)
|
|
5810
|
+
|
|
5811
|
+
@jsii.data_type(
|
|
5812
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty",
|
|
5813
|
+
jsii_struct_bases=[],
|
|
5814
|
+
name_mapping={"embedding_model_arn": "embeddingModelArn"},
|
|
5815
|
+
)
|
|
5816
|
+
class VectorKnowledgeBaseConfigurationProperty:
|
|
5817
|
+
def __init__(self, *, embedding_model_arn: builtins.str) -> None:
|
|
5818
|
+
'''Contains details about the model used to create vector embeddings for the knowledge base.
|
|
5819
|
+
|
|
5820
|
+
:param embedding_model_arn: The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.
|
|
5821
|
+
|
|
5822
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html
|
|
5823
|
+
:exampleMetadata: fixture=_generated
|
|
5824
|
+
|
|
5825
|
+
Example::
|
|
5826
|
+
|
|
5827
|
+
# The code below shows an example of how to instantiate this type.
|
|
5828
|
+
# The values are placeholders you should change.
|
|
5829
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
5830
|
+
|
|
5831
|
+
vector_knowledge_base_configuration_property = bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty(
|
|
5832
|
+
embedding_model_arn="embeddingModelArn"
|
|
5833
|
+
)
|
|
5834
|
+
'''
|
|
5835
|
+
if __debug__:
|
|
5836
|
+
type_hints = typing.get_type_hints(_typecheckingstub__53b08e209954b21c35b746e5eee517d51370af30630f5f17b3e5435150898236)
|
|
5837
|
+
check_type(argname="argument embedding_model_arn", value=embedding_model_arn, expected_type=type_hints["embedding_model_arn"])
|
|
5838
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
5839
|
+
"embedding_model_arn": embedding_model_arn,
|
|
5840
|
+
}
|
|
5841
|
+
|
|
5842
|
+
@builtins.property
|
|
5843
|
+
def embedding_model_arn(self) -> builtins.str:
|
|
5844
|
+
'''The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.
|
|
5845
|
+
|
|
5846
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-vectorknowledgebaseconfiguration-embeddingmodelarn
|
|
5847
|
+
'''
|
|
5848
|
+
result = self._values.get("embedding_model_arn")
|
|
5849
|
+
assert result is not None, "Required property 'embedding_model_arn' is missing"
|
|
3503
5850
|
return typing.cast(builtins.str, result)
|
|
3504
5851
|
|
|
3505
5852
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
@@ -3521,6 +5868,7 @@ class CfnKnowledgeBase(
|
|
|
3521
5868
|
"knowledge_base_configuration": "knowledgeBaseConfiguration",
|
|
3522
5869
|
"name": "name",
|
|
3523
5870
|
"role_arn": "roleArn",
|
|
5871
|
+
"storage_configuration": "storageConfiguration",
|
|
3524
5872
|
"description": "description",
|
|
3525
5873
|
"tags": "tags",
|
|
3526
5874
|
},
|
|
@@ -3532,6 +5880,7 @@ class CfnKnowledgeBaseProps:
|
|
|
3532
5880
|
knowledge_base_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.KnowledgeBaseConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
3533
5881
|
name: builtins.str,
|
|
3534
5882
|
role_arn: builtins.str,
|
|
5883
|
+
storage_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.StorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
3535
5884
|
description: typing.Optional[builtins.str] = None,
|
|
3536
5885
|
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
3537
5886
|
) -> None:
|
|
@@ -3540,6 +5889,7 @@ class CfnKnowledgeBaseProps:
|
|
|
3540
5889
|
:param knowledge_base_configuration: Contains details about the embeddings configuration of the knowledge base.
|
|
3541
5890
|
:param name: The name of the knowledge base.
|
|
3542
5891
|
:param role_arn: The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
|
|
5892
|
+
:param storage_configuration: Contains details about the storage configuration of the knowledge base.
|
|
3543
5893
|
:param description: The description of the knowledge base.
|
|
3544
5894
|
:param tags: Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_ - `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
|
|
3545
5895
|
|
|
@@ -3561,6 +5911,43 @@ class CfnKnowledgeBaseProps:
|
|
|
3561
5911
|
),
|
|
3562
5912
|
name="name",
|
|
3563
5913
|
role_arn="roleArn",
|
|
5914
|
+
storage_configuration=bedrock.CfnKnowledgeBase.StorageConfigurationProperty(
|
|
5915
|
+
type="type",
|
|
5916
|
+
|
|
5917
|
+
# the properties below are optional
|
|
5918
|
+
opensearch_serverless_configuration=bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty(
|
|
5919
|
+
collection_arn="collectionArn",
|
|
5920
|
+
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty(
|
|
5921
|
+
metadata_field="metadataField",
|
|
5922
|
+
text_field="textField",
|
|
5923
|
+
vector_field="vectorField"
|
|
5924
|
+
),
|
|
5925
|
+
vector_index_name="vectorIndexName"
|
|
5926
|
+
),
|
|
5927
|
+
pinecone_configuration=bedrock.CfnKnowledgeBase.PineconeConfigurationProperty(
|
|
5928
|
+
connection_string="connectionString",
|
|
5929
|
+
credentials_secret_arn="credentialsSecretArn",
|
|
5930
|
+
field_mapping=bedrock.CfnKnowledgeBase.PineconeFieldMappingProperty(
|
|
5931
|
+
metadata_field="metadataField",
|
|
5932
|
+
text_field="textField"
|
|
5933
|
+
),
|
|
5934
|
+
|
|
5935
|
+
# the properties below are optional
|
|
5936
|
+
namespace="namespace"
|
|
5937
|
+
),
|
|
5938
|
+
rds_configuration=bedrock.CfnKnowledgeBase.RdsConfigurationProperty(
|
|
5939
|
+
credentials_secret_arn="credentialsSecretArn",
|
|
5940
|
+
database_name="databaseName",
|
|
5941
|
+
field_mapping=bedrock.CfnKnowledgeBase.RdsFieldMappingProperty(
|
|
5942
|
+
metadata_field="metadataField",
|
|
5943
|
+
primary_key_field="primaryKeyField",
|
|
5944
|
+
text_field="textField",
|
|
5945
|
+
vector_field="vectorField"
|
|
5946
|
+
),
|
|
5947
|
+
resource_arn="resourceArn",
|
|
5948
|
+
table_name="tableName"
|
|
5949
|
+
)
|
|
5950
|
+
),
|
|
3564
5951
|
|
|
3565
5952
|
# the properties below are optional
|
|
3566
5953
|
description="description",
|
|
@@ -3574,12 +5961,14 @@ class CfnKnowledgeBaseProps:
|
|
|
3574
5961
|
check_type(argname="argument knowledge_base_configuration", value=knowledge_base_configuration, expected_type=type_hints["knowledge_base_configuration"])
|
|
3575
5962
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
3576
5963
|
check_type(argname="argument role_arn", value=role_arn, expected_type=type_hints["role_arn"])
|
|
5964
|
+
check_type(argname="argument storage_configuration", value=storage_configuration, expected_type=type_hints["storage_configuration"])
|
|
3577
5965
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
3578
5966
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
3579
5967
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3580
5968
|
"knowledge_base_configuration": knowledge_base_configuration,
|
|
3581
5969
|
"name": name,
|
|
3582
5970
|
"role_arn": role_arn,
|
|
5971
|
+
"storage_configuration": storage_configuration,
|
|
3583
5972
|
}
|
|
3584
5973
|
if description is not None:
|
|
3585
5974
|
self._values["description"] = description
|
|
@@ -3618,6 +6007,18 @@ class CfnKnowledgeBaseProps:
|
|
|
3618
6007
|
assert result is not None, "Required property 'role_arn' is missing"
|
|
3619
6008
|
return typing.cast(builtins.str, result)
|
|
3620
6009
|
|
|
6010
|
+
@builtins.property
|
|
6011
|
+
def storage_configuration(
|
|
6012
|
+
self,
|
|
6013
|
+
) -> typing.Union[_IResolvable_da3f097b, CfnKnowledgeBase.StorageConfigurationProperty]:
|
|
6014
|
+
'''Contains details about the storage configuration of the knowledge base.
|
|
6015
|
+
|
|
6016
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-knowledgebase.html#cfn-bedrock-knowledgebase-storageconfiguration
|
|
6017
|
+
'''
|
|
6018
|
+
result = self._values.get("storage_configuration")
|
|
6019
|
+
assert result is not None, "Required property 'storage_configuration' is missing"
|
|
6020
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, CfnKnowledgeBase.StorageConfigurationProperty], result)
|
|
6021
|
+
|
|
3621
6022
|
@builtins.property
|
|
3622
6023
|
def description(self) -> typing.Optional[builtins.str]:
|
|
3623
6024
|
'''The description of the knowledge base.
|
|
@@ -4187,6 +6588,8 @@ __all__ = [
|
|
|
4187
6588
|
"CfnAgentProps",
|
|
4188
6589
|
"CfnDataSource",
|
|
4189
6590
|
"CfnDataSourceProps",
|
|
6591
|
+
"CfnGuardrail",
|
|
6592
|
+
"CfnGuardrailProps",
|
|
4190
6593
|
"CfnKnowledgeBase",
|
|
4191
6594
|
"CfnKnowledgeBaseProps",
|
|
4192
6595
|
"FoundationModel",
|
|
@@ -4214,6 +6617,7 @@ def _typecheckingstub__facaad57ffe16da42f099d2b7997f3e6fd3b9eba46fd226d8fb5afe28
|
|
|
4214
6617
|
prompt_override_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.PromptOverrideConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4215
6618
|
skip_resource_in_use_check_on_delete: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
4216
6619
|
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
6620
|
+
test_alias_tags: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]] = None,
|
|
4217
6621
|
) -> None:
|
|
4218
6622
|
"""Type checking stubs"""
|
|
4219
6623
|
pass
|
|
@@ -4308,6 +6712,12 @@ def _typecheckingstub__f9e79489cae3525b40539f62fddb8a1f8b194bc0b1d166146c12f85a5
|
|
|
4308
6712
|
"""Type checking stubs"""
|
|
4309
6713
|
pass
|
|
4310
6714
|
|
|
6715
|
+
def _typecheckingstub__0adf24775a3a1362c3b4eeb79adc26cdf461e3c52ade9a1522d271295bf0d775(
|
|
6716
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]],
|
|
6717
|
+
) -> None:
|
|
6718
|
+
"""Type checking stubs"""
|
|
6719
|
+
pass
|
|
6720
|
+
|
|
4311
6721
|
def _typecheckingstub__537a89983eef4dfdf436d52865dbd27f462f778f0de6c8ec6162918153faf331(
|
|
4312
6722
|
*,
|
|
4313
6723
|
payload: typing.Optional[builtins.str] = None,
|
|
@@ -4481,6 +6891,7 @@ def _typecheckingstub__b4f714080f6d4f9b0a3fe85a8425a8ba69698695e35d6fbd9d710ca5d
|
|
|
4481
6891
|
prompt_override_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.PromptOverrideConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4482
6892
|
skip_resource_in_use_check_on_delete: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
4483
6893
|
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
6894
|
+
test_alias_tags: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]] = None,
|
|
4484
6895
|
) -> None:
|
|
4485
6896
|
"""Type checking stubs"""
|
|
4486
6897
|
pass
|
|
@@ -4492,6 +6903,7 @@ def _typecheckingstub__8b6230da788965416b3262c41917eaab2193b3cfccf7a03f313a8c191
|
|
|
4492
6903
|
data_source_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.DataSourceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
4493
6904
|
knowledge_base_id: builtins.str,
|
|
4494
6905
|
name: builtins.str,
|
|
6906
|
+
data_deletion_policy: typing.Optional[builtins.str] = None,
|
|
4495
6907
|
description: typing.Optional[builtins.str] = None,
|
|
4496
6908
|
server_side_encryption_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.ServerSideEncryptionConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4497
6909
|
vector_ingestion_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.VectorIngestionConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -4529,6 +6941,12 @@ def _typecheckingstub__99613771dd63beb77d047c2f17b9362e99ec38dd6fb89ec0c78f690f7
|
|
|
4529
6941
|
"""Type checking stubs"""
|
|
4530
6942
|
pass
|
|
4531
6943
|
|
|
6944
|
+
def _typecheckingstub__13070c256fb6cad53f284f3bdd82c32491d75ab72033b19aa76e3daf539a2b8f(
|
|
6945
|
+
value: typing.Optional[builtins.str],
|
|
6946
|
+
) -> None:
|
|
6947
|
+
"""Type checking stubs"""
|
|
6948
|
+
pass
|
|
6949
|
+
|
|
4532
6950
|
def _typecheckingstub__7fc31b7620f239d59ff8a40cb711119c09cf659e115e22ba5d86a3d2a36aa17b(
|
|
4533
6951
|
value: typing.Optional[builtins.str],
|
|
4534
6952
|
) -> None:
|
|
@@ -4574,6 +6992,7 @@ def _typecheckingstub__7b9e8054cbf79d2292e738f1061947914954b89440b15bf572c87c969
|
|
|
4574
6992
|
def _typecheckingstub__6b4929296343a5ea55bce5d28d11b34fa10885df35596a08102658f8bcbc8c5b(
|
|
4575
6993
|
*,
|
|
4576
6994
|
bucket_arn: builtins.str,
|
|
6995
|
+
bucket_owner_account_id: typing.Optional[builtins.str] = None,
|
|
4577
6996
|
inclusion_prefixes: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
4578
6997
|
) -> None:
|
|
4579
6998
|
"""Type checking stubs"""
|
|
@@ -4598,6 +7017,7 @@ def _typecheckingstub__4beca3e3b31c91619a3fa9da2bf185ffd738124b7965f1c90a191b43c
|
|
|
4598
7017
|
data_source_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.DataSourceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
4599
7018
|
knowledge_base_id: builtins.str,
|
|
4600
7019
|
name: builtins.str,
|
|
7020
|
+
data_deletion_policy: typing.Optional[builtins.str] = None,
|
|
4601
7021
|
description: typing.Optional[builtins.str] = None,
|
|
4602
7022
|
server_side_encryption_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.ServerSideEncryptionConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4603
7023
|
vector_ingestion_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.VectorIngestionConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -4605,6 +7025,193 @@ def _typecheckingstub__4beca3e3b31c91619a3fa9da2bf185ffd738124b7965f1c90a191b43c
|
|
|
4605
7025
|
"""Type checking stubs"""
|
|
4606
7026
|
pass
|
|
4607
7027
|
|
|
7028
|
+
def _typecheckingstub__2043b4e3280827dde584095cdad9778bf2076242696d52ba5a39dc96cedb89a0(
|
|
7029
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
7030
|
+
id: builtins.str,
|
|
7031
|
+
*,
|
|
7032
|
+
blocked_input_messaging: builtins.str,
|
|
7033
|
+
blocked_outputs_messaging: builtins.str,
|
|
7034
|
+
name: builtins.str,
|
|
7035
|
+
content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContentPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7036
|
+
description: typing.Optional[builtins.str] = None,
|
|
7037
|
+
kms_key_arn: typing.Optional[builtins.str] = None,
|
|
7038
|
+
sensitive_information_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.SensitiveInformationPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7039
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7040
|
+
topic_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.TopicPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7041
|
+
word_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.WordPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7042
|
+
) -> None:
|
|
7043
|
+
"""Type checking stubs"""
|
|
7044
|
+
pass
|
|
7045
|
+
|
|
7046
|
+
def _typecheckingstub__e92a00856c8ad560cb684783884ef636d036b3706e64c243b469db70f7b1d651(
|
|
7047
|
+
inspector: _TreeInspector_488e0dd5,
|
|
7048
|
+
) -> None:
|
|
7049
|
+
"""Type checking stubs"""
|
|
7050
|
+
pass
|
|
7051
|
+
|
|
7052
|
+
def _typecheckingstub__b769e76e098e449277bbeec2441c2e936bbf304845dbafabf4f5c614c9d2a27a(
|
|
7053
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
7054
|
+
) -> None:
|
|
7055
|
+
"""Type checking stubs"""
|
|
7056
|
+
pass
|
|
7057
|
+
|
|
7058
|
+
def _typecheckingstub__b8a2f9687ff4e81f4953a900999b03337df14ba54044290009f92b978479aa71(
|
|
7059
|
+
value: builtins.str,
|
|
7060
|
+
) -> None:
|
|
7061
|
+
"""Type checking stubs"""
|
|
7062
|
+
pass
|
|
7063
|
+
|
|
7064
|
+
def _typecheckingstub__59377d273ba1076fa0e7fa7b325e1080a042838c62e3d653e7e2d9fbfd37b757(
|
|
7065
|
+
value: builtins.str,
|
|
7066
|
+
) -> None:
|
|
7067
|
+
"""Type checking stubs"""
|
|
7068
|
+
pass
|
|
7069
|
+
|
|
7070
|
+
def _typecheckingstub__4214430bb449bbe8c35bffe05d8f030f2f1e4d9bf03e87e52eaf3920fcd73539(
|
|
7071
|
+
value: builtins.str,
|
|
7072
|
+
) -> None:
|
|
7073
|
+
"""Type checking stubs"""
|
|
7074
|
+
pass
|
|
7075
|
+
|
|
7076
|
+
def _typecheckingstub__a2352c360e9d740d982528265b1e13ef0cbbc639f4ce7a9811f5347cf9c39343(
|
|
7077
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.ContentPolicyConfigProperty]],
|
|
7078
|
+
) -> None:
|
|
7079
|
+
"""Type checking stubs"""
|
|
7080
|
+
pass
|
|
7081
|
+
|
|
7082
|
+
def _typecheckingstub__885f2a8f4b710e0b2b1255d6f0514f5b0e080398bf5941c4b2830331855b81ae(
|
|
7083
|
+
value: typing.Optional[builtins.str],
|
|
7084
|
+
) -> None:
|
|
7085
|
+
"""Type checking stubs"""
|
|
7086
|
+
pass
|
|
7087
|
+
|
|
7088
|
+
def _typecheckingstub__fbc1d4225a1496cd036d97ea54283afa42f857e546f96fed46866f7df1c2a712(
|
|
7089
|
+
value: typing.Optional[builtins.str],
|
|
7090
|
+
) -> None:
|
|
7091
|
+
"""Type checking stubs"""
|
|
7092
|
+
pass
|
|
7093
|
+
|
|
7094
|
+
def _typecheckingstub__279893b9f82164ec1f1485986bfd2950340b836fafb5d6299d2c28b1d4277f9d(
|
|
7095
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.SensitiveInformationPolicyConfigProperty]],
|
|
7096
|
+
) -> None:
|
|
7097
|
+
"""Type checking stubs"""
|
|
7098
|
+
pass
|
|
7099
|
+
|
|
7100
|
+
def _typecheckingstub__d2d4316cf506347b6f9939e84461c5f14a0501165f7128ebaec15ea06b2fc68a(
|
|
7101
|
+
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
7102
|
+
) -> None:
|
|
7103
|
+
"""Type checking stubs"""
|
|
7104
|
+
pass
|
|
7105
|
+
|
|
7106
|
+
def _typecheckingstub__853c4d50370da0c19067d3356726317d2cb9cfdd5405344e1ded902c29bb30d0(
|
|
7107
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.TopicPolicyConfigProperty]],
|
|
7108
|
+
) -> None:
|
|
7109
|
+
"""Type checking stubs"""
|
|
7110
|
+
pass
|
|
7111
|
+
|
|
7112
|
+
def _typecheckingstub__8db61eded81d93fbd03b059a0415cd544498a84333ec2ae6cb76fed58dc07062(
|
|
7113
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.WordPolicyConfigProperty]],
|
|
7114
|
+
) -> None:
|
|
7115
|
+
"""Type checking stubs"""
|
|
7116
|
+
pass
|
|
7117
|
+
|
|
7118
|
+
def _typecheckingstub__e931f7f6b53869d60aab0ecda0e56f276982aaf3a1ee755be3434f26d989ebd5(
|
|
7119
|
+
*,
|
|
7120
|
+
input_strength: builtins.str,
|
|
7121
|
+
output_strength: builtins.str,
|
|
7122
|
+
type: builtins.str,
|
|
7123
|
+
) -> None:
|
|
7124
|
+
"""Type checking stubs"""
|
|
7125
|
+
pass
|
|
7126
|
+
|
|
7127
|
+
def _typecheckingstub__3c9f736a4ece8c00be77ba5cd1cda628f4fd10884f3d7ed2c668ae9c1c654fb0(
|
|
7128
|
+
*,
|
|
7129
|
+
filters_config: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContentFilterConfigProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
7130
|
+
) -> None:
|
|
7131
|
+
"""Type checking stubs"""
|
|
7132
|
+
pass
|
|
7133
|
+
|
|
7134
|
+
def _typecheckingstub__a4bf7d4d57eaea6d7c62d6852c2666ebfc7a95d0b72269c42fb757f13cdcece6(
|
|
7135
|
+
*,
|
|
7136
|
+
type: builtins.str,
|
|
7137
|
+
) -> None:
|
|
7138
|
+
"""Type checking stubs"""
|
|
7139
|
+
pass
|
|
7140
|
+
|
|
7141
|
+
def _typecheckingstub__b1b637cd24a7601fa9e29e9667a11a4859f00240df5f6c858a1c38c3b51a9ece(
|
|
7142
|
+
*,
|
|
7143
|
+
action: builtins.str,
|
|
7144
|
+
type: builtins.str,
|
|
7145
|
+
) -> None:
|
|
7146
|
+
"""Type checking stubs"""
|
|
7147
|
+
pass
|
|
7148
|
+
|
|
7149
|
+
def _typecheckingstub__6b89e42a3611474b89e78273413fafd42e2ceb034d2f5fa3e3c122fbd7b3f064(
|
|
7150
|
+
*,
|
|
7151
|
+
action: builtins.str,
|
|
7152
|
+
name: builtins.str,
|
|
7153
|
+
pattern: builtins.str,
|
|
7154
|
+
description: typing.Optional[builtins.str] = None,
|
|
7155
|
+
) -> None:
|
|
7156
|
+
"""Type checking stubs"""
|
|
7157
|
+
pass
|
|
7158
|
+
|
|
7159
|
+
def _typecheckingstub__ce533c46d8cdf8ee409b3343d7148ef4f9260d103d28195f722d007266162d12(
|
|
7160
|
+
*,
|
|
7161
|
+
pii_entities_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.PiiEntityConfigProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
7162
|
+
regexes_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.RegexConfigProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
7163
|
+
) -> None:
|
|
7164
|
+
"""Type checking stubs"""
|
|
7165
|
+
pass
|
|
7166
|
+
|
|
7167
|
+
def _typecheckingstub__55baba87f7434d59d4b6be04489cbfbd90b857b82944e9437475de8bd648c94c(
|
|
7168
|
+
*,
|
|
7169
|
+
definition: builtins.str,
|
|
7170
|
+
name: builtins.str,
|
|
7171
|
+
type: builtins.str,
|
|
7172
|
+
examples: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
7173
|
+
) -> None:
|
|
7174
|
+
"""Type checking stubs"""
|
|
7175
|
+
pass
|
|
7176
|
+
|
|
7177
|
+
def _typecheckingstub__a601b9bb5110351c09983ddf7f804dd1b1d64d78dffded374d89618a609277eb(
|
|
7178
|
+
*,
|
|
7179
|
+
topics_config: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.TopicConfigProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
7180
|
+
) -> None:
|
|
7181
|
+
"""Type checking stubs"""
|
|
7182
|
+
pass
|
|
7183
|
+
|
|
7184
|
+
def _typecheckingstub__8d97ba02e51405985a3642a48511f50ab8ebae582cdd068b6dec0252d49b5497(
|
|
7185
|
+
*,
|
|
7186
|
+
text: builtins.str,
|
|
7187
|
+
) -> None:
|
|
7188
|
+
"""Type checking stubs"""
|
|
7189
|
+
pass
|
|
7190
|
+
|
|
7191
|
+
def _typecheckingstub__40e1ce19bae133dd80df92a2b7a2a8185b6ce800337dbf3519f8449ef4f93952(
|
|
7192
|
+
*,
|
|
7193
|
+
managed_word_lists_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ManagedWordsConfigProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
7194
|
+
words_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.WordConfigProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
7195
|
+
) -> None:
|
|
7196
|
+
"""Type checking stubs"""
|
|
7197
|
+
pass
|
|
7198
|
+
|
|
7199
|
+
def _typecheckingstub__e16800cc7473874d0d58b13a772dade51a596e19ff440f95ad243d23606a6cea(
|
|
7200
|
+
*,
|
|
7201
|
+
blocked_input_messaging: builtins.str,
|
|
7202
|
+
blocked_outputs_messaging: builtins.str,
|
|
7203
|
+
name: builtins.str,
|
|
7204
|
+
content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContentPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7205
|
+
description: typing.Optional[builtins.str] = None,
|
|
7206
|
+
kms_key_arn: typing.Optional[builtins.str] = None,
|
|
7207
|
+
sensitive_information_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.SensitiveInformationPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7208
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7209
|
+
topic_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.TopicPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7210
|
+
word_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.WordPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7211
|
+
) -> None:
|
|
7212
|
+
"""Type checking stubs"""
|
|
7213
|
+
pass
|
|
7214
|
+
|
|
4608
7215
|
def _typecheckingstub__6ef81b8dcbedbd76b5a39a6fd5a967ba49aa887b63aad45e2bc246c96c7abcec(
|
|
4609
7216
|
scope: _constructs_77d1e7e8.Construct,
|
|
4610
7217
|
id: builtins.str,
|
|
@@ -4612,6 +7219,7 @@ def _typecheckingstub__6ef81b8dcbedbd76b5a39a6fd5a967ba49aa887b63aad45e2bc246c96
|
|
|
4612
7219
|
knowledge_base_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.KnowledgeBaseConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
4613
7220
|
name: builtins.str,
|
|
4614
7221
|
role_arn: builtins.str,
|
|
7222
|
+
storage_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.StorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
4615
7223
|
description: typing.Optional[builtins.str] = None,
|
|
4616
7224
|
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
4617
7225
|
) -> None:
|
|
@@ -4648,6 +7256,12 @@ def _typecheckingstub__e6281f2d1ed9a2f71b02754159fe6b2d8c70d3527e97d2d060434dc34
|
|
|
4648
7256
|
"""Type checking stubs"""
|
|
4649
7257
|
pass
|
|
4650
7258
|
|
|
7259
|
+
def _typecheckingstub__9c3409dc5fcb9799e2f638dda4e66d2391cf6984b3e10eb29b36e85981cfc59b(
|
|
7260
|
+
value: typing.Union[_IResolvable_da3f097b, CfnKnowledgeBase.StorageConfigurationProperty],
|
|
7261
|
+
) -> None:
|
|
7262
|
+
"""Type checking stubs"""
|
|
7263
|
+
pass
|
|
7264
|
+
|
|
4651
7265
|
def _typecheckingstub__f9fef7f262d2bad58c7f37c90b8756dd028b772a93aa036a4caf0c9565a7fff1(
|
|
4652
7266
|
value: typing.Optional[builtins.str],
|
|
4653
7267
|
) -> None:
|
|
@@ -4668,6 +7282,73 @@ def _typecheckingstub__f2ca26f28cc4cf3a289e62f58643faf6a7d98ea3e55e7ff4f0f77530f
|
|
|
4668
7282
|
"""Type checking stubs"""
|
|
4669
7283
|
pass
|
|
4670
7284
|
|
|
7285
|
+
def _typecheckingstub__ebf20de0b58d579ecbd2aeccf094bb6c29ae3627a2b4628485b0235e33626d24(
|
|
7286
|
+
*,
|
|
7287
|
+
collection_arn: builtins.str,
|
|
7288
|
+
field_mapping: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
7289
|
+
vector_index_name: builtins.str,
|
|
7290
|
+
) -> None:
|
|
7291
|
+
"""Type checking stubs"""
|
|
7292
|
+
pass
|
|
7293
|
+
|
|
7294
|
+
def _typecheckingstub__b8e490584f9c3a514d8b66b508fa651b9eead4ae9af9f9cfa66c2ef1e1e4495f(
|
|
7295
|
+
*,
|
|
7296
|
+
metadata_field: builtins.str,
|
|
7297
|
+
text_field: builtins.str,
|
|
7298
|
+
vector_field: builtins.str,
|
|
7299
|
+
) -> None:
|
|
7300
|
+
"""Type checking stubs"""
|
|
7301
|
+
pass
|
|
7302
|
+
|
|
7303
|
+
def _typecheckingstub__9425ac4f69df601cd9f6eaef75febf9d71ce4845a6c4629a0c9fd790f5af4075(
|
|
7304
|
+
*,
|
|
7305
|
+
connection_string: builtins.str,
|
|
7306
|
+
credentials_secret_arn: builtins.str,
|
|
7307
|
+
field_mapping: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.PineconeFieldMappingProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
7308
|
+
namespace: typing.Optional[builtins.str] = None,
|
|
7309
|
+
) -> None:
|
|
7310
|
+
"""Type checking stubs"""
|
|
7311
|
+
pass
|
|
7312
|
+
|
|
7313
|
+
def _typecheckingstub__2169e124a8314b619ba9fb9f5ea31bc496b6bec20da9f8880770981d442b591d(
|
|
7314
|
+
*,
|
|
7315
|
+
metadata_field: builtins.str,
|
|
7316
|
+
text_field: builtins.str,
|
|
7317
|
+
) -> None:
|
|
7318
|
+
"""Type checking stubs"""
|
|
7319
|
+
pass
|
|
7320
|
+
|
|
7321
|
+
def _typecheckingstub__5bd4ba48a510008cefecd72d69bf8fed706c5791b8305e19be10355faa482026(
|
|
7322
|
+
*,
|
|
7323
|
+
credentials_secret_arn: builtins.str,
|
|
7324
|
+
database_name: builtins.str,
|
|
7325
|
+
field_mapping: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.RdsFieldMappingProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
7326
|
+
resource_arn: builtins.str,
|
|
7327
|
+
table_name: builtins.str,
|
|
7328
|
+
) -> None:
|
|
7329
|
+
"""Type checking stubs"""
|
|
7330
|
+
pass
|
|
7331
|
+
|
|
7332
|
+
def _typecheckingstub__0060deafed28d2f4c1690bf8921de0b9aca79fe88ac4c5ca53f29b4ef0895537(
|
|
7333
|
+
*,
|
|
7334
|
+
metadata_field: builtins.str,
|
|
7335
|
+
primary_key_field: builtins.str,
|
|
7336
|
+
text_field: builtins.str,
|
|
7337
|
+
vector_field: builtins.str,
|
|
7338
|
+
) -> None:
|
|
7339
|
+
"""Type checking stubs"""
|
|
7340
|
+
pass
|
|
7341
|
+
|
|
7342
|
+
def _typecheckingstub__fa4cccae88d65689f5f3cabcb8393a082af16eb90d7613332a03867c32272af4(
|
|
7343
|
+
*,
|
|
7344
|
+
type: builtins.str,
|
|
7345
|
+
opensearch_serverless_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7346
|
+
pinecone_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.PineconeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7347
|
+
rds_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.RdsConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7348
|
+
) -> None:
|
|
7349
|
+
"""Type checking stubs"""
|
|
7350
|
+
pass
|
|
7351
|
+
|
|
4671
7352
|
def _typecheckingstub__53b08e209954b21c35b746e5eee517d51370af30630f5f17b3e5435150898236(
|
|
4672
7353
|
*,
|
|
4673
7354
|
embedding_model_arn: builtins.str,
|
|
@@ -4680,6 +7361,7 @@ def _typecheckingstub__a5f6560ff734e79a877ac4cd934408cd79b9c6a6c1dac195972f27ac4
|
|
|
4680
7361
|
knowledge_base_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.KnowledgeBaseConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
4681
7362
|
name: builtins.str,
|
|
4682
7363
|
role_arn: builtins.str,
|
|
7364
|
+
storage_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.StorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
4683
7365
|
description: typing.Optional[builtins.str] = None,
|
|
4684
7366
|
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
4685
7367
|
) -> None:
|