aws-cdk-lib 2.189.1__py3-none-any.whl → 2.191.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/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.189.1.jsii.tgz → aws-cdk-lib@2.191.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +6 -6
- aws_cdk/aws_apigateway/__init__.py +18 -1
- aws_cdk/aws_apigatewayv2/__init__.py +374 -6
- aws_cdk/aws_applicationautoscaling/__init__.py +16 -10
- aws_cdk/aws_applicationsignals/__init__.py +204 -31
- aws_cdk/aws_aps/__init__.py +383 -2
- aws_cdk/aws_backup/__init__.py +0 -41
- aws_cdk/aws_batch/__init__.py +242 -5
- aws_cdk/aws_bedrock/__init__.py +963 -41
- aws_cdk/aws_cleanrooms/__init__.py +1392 -78
- aws_cdk/aws_cloudfront/__init__.py +1 -0
- aws_cdk/aws_cloudtrail/__init__.py +24 -26
- aws_cdk/aws_codebuild/__init__.py +107 -7
- aws_cdk/aws_datazone/__init__.py +23 -1
- aws_cdk/aws_dms/__init__.py +43 -0
- aws_cdk/aws_ec2/__init__.py +364 -30
- aws_cdk/aws_ecs/__init__.py +36 -5
- aws_cdk/aws_eks/__init__.py +2 -100
- aws_cdk/aws_elasticache/__init__.py +6 -11
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +341 -0
- aws_cdk/aws_events/__init__.py +106 -13
- aws_cdk/aws_fsx/__init__.py +9 -21
- aws_cdk/aws_iam/__init__.py +1 -1
- aws_cdk/aws_iot/__init__.py +6 -6
- aws_cdk/aws_kafkaconnect/__init__.py +2 -2
- aws_cdk/aws_kinesis/__init__.py +44 -0
- aws_cdk/aws_launchwizard/__init__.py +49 -49
- aws_cdk/aws_lex/__init__.py +615 -39
- aws_cdk/aws_location/__init__.py +4 -4
- aws_cdk/aws_macie/__init__.py +14 -3
- aws_cdk/aws_memorydb/__init__.py +87 -0
- aws_cdk/aws_msk/__init__.py +226 -127
- aws_cdk/aws_neptune/__init__.py +0 -24
- aws_cdk/aws_opensearchservice/__init__.py +64 -56
- aws_cdk/aws_paymentcryptography/__init__.py +41 -0
- aws_cdk/aws_qbusiness/__init__.py +175 -3
- aws_cdk/aws_quicksight/__init__.py +393 -0
- aws_cdk/aws_rds/__init__.py +149 -120
- aws_cdk/aws_redshiftserverless/__init__.py +4 -14
- aws_cdk/aws_route53resolver/__init__.py +60 -9
- aws_cdk/aws_s3/__init__.py +34 -1
- aws_cdk/aws_s3_deployment/__init__.py +202 -5
- aws_cdk/aws_s3tables/__init__.py +142 -1
- aws_cdk/aws_sagemaker/__init__.py +40 -40
- aws_cdk/aws_ses/__init__.py +643 -18
- aws_cdk/aws_ssmquicksetup/__init__.py +3 -3
- aws_cdk/aws_stepfunctions/__init__.py +720 -45
- aws_cdk/aws_transfer/__init__.py +55 -2
- aws_cdk/pipelines/__init__.py +1 -2
- {aws_cdk_lib-2.189.1.dist-info → aws_cdk_lib-2.191.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.189.1.dist-info → aws_cdk_lib-2.191.0.dist-info}/RECORD +57 -57
- {aws_cdk_lib-2.189.1.dist-info → aws_cdk_lib-2.191.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.189.1.dist-info → aws_cdk_lib-2.191.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.189.1.dist-info → aws_cdk_lib-2.191.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.189.1.dist-info → aws_cdk_lib-2.191.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -19012,14 +19012,22 @@ class CfnGuardrail(
|
|
|
19012
19012
|
type="type",
|
|
19013
19013
|
|
|
19014
19014
|
# the properties below are optional
|
|
19015
|
+
input_action="inputAction",
|
|
19016
|
+
input_enabled=False,
|
|
19015
19017
|
input_modalities=["inputModalities"],
|
|
19018
|
+
output_action="outputAction",
|
|
19019
|
+
output_enabled=False,
|
|
19016
19020
|
output_modalities=["outputModalities"]
|
|
19017
19021
|
)]
|
|
19018
19022
|
),
|
|
19019
19023
|
contextual_grounding_policy_config=bedrock.CfnGuardrail.ContextualGroundingPolicyConfigProperty(
|
|
19020
19024
|
filters_config=[bedrock.CfnGuardrail.ContextualGroundingFilterConfigProperty(
|
|
19021
19025
|
threshold=123,
|
|
19022
|
-
type="type"
|
|
19026
|
+
type="type",
|
|
19027
|
+
|
|
19028
|
+
# the properties below are optional
|
|
19029
|
+
action="action",
|
|
19030
|
+
enabled=False
|
|
19023
19031
|
)]
|
|
19024
19032
|
),
|
|
19025
19033
|
description="description",
|
|
@@ -19027,7 +19035,13 @@ class CfnGuardrail(
|
|
|
19027
19035
|
sensitive_information_policy_config=bedrock.CfnGuardrail.SensitiveInformationPolicyConfigProperty(
|
|
19028
19036
|
pii_entities_config=[bedrock.CfnGuardrail.PiiEntityConfigProperty(
|
|
19029
19037
|
action="action",
|
|
19030
|
-
type="type"
|
|
19038
|
+
type="type",
|
|
19039
|
+
|
|
19040
|
+
# the properties below are optional
|
|
19041
|
+
input_action="inputAction",
|
|
19042
|
+
input_enabled=False,
|
|
19043
|
+
output_action="outputAction",
|
|
19044
|
+
output_enabled=False
|
|
19031
19045
|
)],
|
|
19032
19046
|
regexes_config=[bedrock.CfnGuardrail.RegexConfigProperty(
|
|
19033
19047
|
action="action",
|
|
@@ -19035,7 +19049,11 @@ class CfnGuardrail(
|
|
|
19035
19049
|
pattern="pattern",
|
|
19036
19050
|
|
|
19037
19051
|
# the properties below are optional
|
|
19038
|
-
description="description"
|
|
19052
|
+
description="description",
|
|
19053
|
+
input_action="inputAction",
|
|
19054
|
+
input_enabled=False,
|
|
19055
|
+
output_action="outputAction",
|
|
19056
|
+
output_enabled=False
|
|
19039
19057
|
)]
|
|
19040
19058
|
),
|
|
19041
19059
|
tags=[CfnTag(
|
|
@@ -19049,15 +19067,31 @@ class CfnGuardrail(
|
|
|
19049
19067
|
type="type",
|
|
19050
19068
|
|
|
19051
19069
|
# the properties below are optional
|
|
19052
|
-
examples=["examples"]
|
|
19070
|
+
examples=["examples"],
|
|
19071
|
+
input_action="inputAction",
|
|
19072
|
+
input_enabled=False,
|
|
19073
|
+
output_action="outputAction",
|
|
19074
|
+
output_enabled=False
|
|
19053
19075
|
)]
|
|
19054
19076
|
),
|
|
19055
19077
|
word_policy_config=bedrock.CfnGuardrail.WordPolicyConfigProperty(
|
|
19056
19078
|
managed_word_lists_config=[bedrock.CfnGuardrail.ManagedWordsConfigProperty(
|
|
19057
|
-
type="type"
|
|
19079
|
+
type="type",
|
|
19080
|
+
|
|
19081
|
+
# the properties below are optional
|
|
19082
|
+
input_action="inputAction",
|
|
19083
|
+
input_enabled=False,
|
|
19084
|
+
output_action="outputAction",
|
|
19085
|
+
output_enabled=False
|
|
19058
19086
|
)],
|
|
19059
19087
|
words_config=[bedrock.CfnGuardrail.WordConfigProperty(
|
|
19060
|
-
text="text"
|
|
19088
|
+
text="text",
|
|
19089
|
+
|
|
19090
|
+
# the properties below are optional
|
|
19091
|
+
input_action="inputAction",
|
|
19092
|
+
input_enabled=False,
|
|
19093
|
+
output_action="outputAction",
|
|
19094
|
+
output_enabled=False
|
|
19061
19095
|
)]
|
|
19062
19096
|
)
|
|
19063
19097
|
)
|
|
@@ -19409,7 +19443,11 @@ class CfnGuardrail(
|
|
|
19409
19443
|
"input_strength": "inputStrength",
|
|
19410
19444
|
"output_strength": "outputStrength",
|
|
19411
19445
|
"type": "type",
|
|
19446
|
+
"input_action": "inputAction",
|
|
19447
|
+
"input_enabled": "inputEnabled",
|
|
19412
19448
|
"input_modalities": "inputModalities",
|
|
19449
|
+
"output_action": "outputAction",
|
|
19450
|
+
"output_enabled": "outputEnabled",
|
|
19413
19451
|
"output_modalities": "outputModalities",
|
|
19414
19452
|
},
|
|
19415
19453
|
)
|
|
@@ -19420,7 +19458,11 @@ class CfnGuardrail(
|
|
|
19420
19458
|
input_strength: builtins.str,
|
|
19421
19459
|
output_strength: builtins.str,
|
|
19422
19460
|
type: builtins.str,
|
|
19461
|
+
input_action: typing.Optional[builtins.str] = None,
|
|
19462
|
+
input_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
19423
19463
|
input_modalities: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
19464
|
+
output_action: typing.Optional[builtins.str] = None,
|
|
19465
|
+
output_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
19424
19466
|
output_modalities: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
19425
19467
|
) -> None:
|
|
19426
19468
|
'''Contains filter strengths for harmful content.
|
|
@@ -19439,7 +19481,11 @@ class CfnGuardrail(
|
|
|
19439
19481
|
:param input_strength: The strength of the content filter to apply to prompts. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
|
|
19440
19482
|
:param output_strength: The strength of the content filter to apply to model responses. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
|
|
19441
19483
|
:param type: The harmful category that the content filter is applied to.
|
|
19484
|
+
:param input_action:
|
|
19485
|
+
:param input_enabled:
|
|
19442
19486
|
:param input_modalities: List of modalities.
|
|
19487
|
+
:param output_action:
|
|
19488
|
+
:param output_enabled:
|
|
19443
19489
|
:param output_modalities: List of modalities.
|
|
19444
19490
|
|
|
19445
19491
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html
|
|
@@ -19457,7 +19503,11 @@ class CfnGuardrail(
|
|
|
19457
19503
|
type="type",
|
|
19458
19504
|
|
|
19459
19505
|
# the properties below are optional
|
|
19506
|
+
input_action="inputAction",
|
|
19507
|
+
input_enabled=False,
|
|
19460
19508
|
input_modalities=["inputModalities"],
|
|
19509
|
+
output_action="outputAction",
|
|
19510
|
+
output_enabled=False,
|
|
19461
19511
|
output_modalities=["outputModalities"]
|
|
19462
19512
|
)
|
|
19463
19513
|
'''
|
|
@@ -19466,15 +19516,27 @@ class CfnGuardrail(
|
|
|
19466
19516
|
check_type(argname="argument input_strength", value=input_strength, expected_type=type_hints["input_strength"])
|
|
19467
19517
|
check_type(argname="argument output_strength", value=output_strength, expected_type=type_hints["output_strength"])
|
|
19468
19518
|
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
19519
|
+
check_type(argname="argument input_action", value=input_action, expected_type=type_hints["input_action"])
|
|
19520
|
+
check_type(argname="argument input_enabled", value=input_enabled, expected_type=type_hints["input_enabled"])
|
|
19469
19521
|
check_type(argname="argument input_modalities", value=input_modalities, expected_type=type_hints["input_modalities"])
|
|
19522
|
+
check_type(argname="argument output_action", value=output_action, expected_type=type_hints["output_action"])
|
|
19523
|
+
check_type(argname="argument output_enabled", value=output_enabled, expected_type=type_hints["output_enabled"])
|
|
19470
19524
|
check_type(argname="argument output_modalities", value=output_modalities, expected_type=type_hints["output_modalities"])
|
|
19471
19525
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
19472
19526
|
"input_strength": input_strength,
|
|
19473
19527
|
"output_strength": output_strength,
|
|
19474
19528
|
"type": type,
|
|
19475
19529
|
}
|
|
19530
|
+
if input_action is not None:
|
|
19531
|
+
self._values["input_action"] = input_action
|
|
19532
|
+
if input_enabled is not None:
|
|
19533
|
+
self._values["input_enabled"] = input_enabled
|
|
19476
19534
|
if input_modalities is not None:
|
|
19477
19535
|
self._values["input_modalities"] = input_modalities
|
|
19536
|
+
if output_action is not None:
|
|
19537
|
+
self._values["output_action"] = output_action
|
|
19538
|
+
if output_enabled is not None:
|
|
19539
|
+
self._values["output_enabled"] = output_enabled
|
|
19478
19540
|
if output_modalities is not None:
|
|
19479
19541
|
self._values["output_modalities"] = output_modalities
|
|
19480
19542
|
|
|
@@ -19512,6 +19574,24 @@ class CfnGuardrail(
|
|
|
19512
19574
|
assert result is not None, "Required property 'type' is missing"
|
|
19513
19575
|
return typing.cast(builtins.str, result)
|
|
19514
19576
|
|
|
19577
|
+
@builtins.property
|
|
19578
|
+
def input_action(self) -> typing.Optional[builtins.str]:
|
|
19579
|
+
'''
|
|
19580
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html#cfn-bedrock-guardrail-contentfilterconfig-inputaction
|
|
19581
|
+
'''
|
|
19582
|
+
result = self._values.get("input_action")
|
|
19583
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
19584
|
+
|
|
19585
|
+
@builtins.property
|
|
19586
|
+
def input_enabled(
|
|
19587
|
+
self,
|
|
19588
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
19589
|
+
'''
|
|
19590
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html#cfn-bedrock-guardrail-contentfilterconfig-inputenabled
|
|
19591
|
+
'''
|
|
19592
|
+
result = self._values.get("input_enabled")
|
|
19593
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
19594
|
+
|
|
19515
19595
|
@builtins.property
|
|
19516
19596
|
def input_modalities(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
19517
19597
|
'''List of modalities.
|
|
@@ -19521,6 +19601,24 @@ class CfnGuardrail(
|
|
|
19521
19601
|
result = self._values.get("input_modalities")
|
|
19522
19602
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
19523
19603
|
|
|
19604
|
+
@builtins.property
|
|
19605
|
+
def output_action(self) -> typing.Optional[builtins.str]:
|
|
19606
|
+
'''
|
|
19607
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html#cfn-bedrock-guardrail-contentfilterconfig-outputaction
|
|
19608
|
+
'''
|
|
19609
|
+
result = self._values.get("output_action")
|
|
19610
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
19611
|
+
|
|
19612
|
+
@builtins.property
|
|
19613
|
+
def output_enabled(
|
|
19614
|
+
self,
|
|
19615
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
19616
|
+
'''
|
|
19617
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html#cfn-bedrock-guardrail-contentfilterconfig-outputenabled
|
|
19618
|
+
'''
|
|
19619
|
+
result = self._values.get("output_enabled")
|
|
19620
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
19621
|
+
|
|
19524
19622
|
@builtins.property
|
|
19525
19623
|
def output_modalities(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
19526
19624
|
'''List of modalities.
|
|
@@ -19572,7 +19670,11 @@ class CfnGuardrail(
|
|
|
19572
19670
|
type="type",
|
|
19573
19671
|
|
|
19574
19672
|
# the properties below are optional
|
|
19673
|
+
input_action="inputAction",
|
|
19674
|
+
input_enabled=False,
|
|
19575
19675
|
input_modalities=["inputModalities"],
|
|
19676
|
+
output_action="outputAction",
|
|
19677
|
+
output_enabled=False,
|
|
19576
19678
|
output_modalities=["outputModalities"]
|
|
19577
19679
|
)]
|
|
19578
19680
|
)
|
|
@@ -19610,14 +19712,28 @@ class CfnGuardrail(
|
|
|
19610
19712
|
@jsii.data_type(
|
|
19611
19713
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.ContextualGroundingFilterConfigProperty",
|
|
19612
19714
|
jsii_struct_bases=[],
|
|
19613
|
-
name_mapping={
|
|
19715
|
+
name_mapping={
|
|
19716
|
+
"threshold": "threshold",
|
|
19717
|
+
"type": "type",
|
|
19718
|
+
"action": "action",
|
|
19719
|
+
"enabled": "enabled",
|
|
19720
|
+
},
|
|
19614
19721
|
)
|
|
19615
19722
|
class ContextualGroundingFilterConfigProperty:
|
|
19616
|
-
def __init__(
|
|
19723
|
+
def __init__(
|
|
19724
|
+
self,
|
|
19725
|
+
*,
|
|
19726
|
+
threshold: jsii.Number,
|
|
19727
|
+
type: builtins.str,
|
|
19728
|
+
action: typing.Optional[builtins.str] = None,
|
|
19729
|
+
enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
19730
|
+
) -> None:
|
|
19617
19731
|
'''The filter configuration details for the guardrails contextual grounding filter.
|
|
19618
19732
|
|
|
19619
19733
|
:param threshold: The threshold details for the guardrails contextual grounding filter.
|
|
19620
19734
|
:param type: The filter details for the guardrails contextual grounding filter.
|
|
19735
|
+
:param action:
|
|
19736
|
+
:param enabled:
|
|
19621
19737
|
|
|
19622
19738
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contextualgroundingfilterconfig.html
|
|
19623
19739
|
:exampleMetadata: fixture=_generated
|
|
@@ -19630,17 +19746,27 @@ class CfnGuardrail(
|
|
|
19630
19746
|
|
|
19631
19747
|
contextual_grounding_filter_config_property = bedrock.CfnGuardrail.ContextualGroundingFilterConfigProperty(
|
|
19632
19748
|
threshold=123,
|
|
19633
|
-
type="type"
|
|
19749
|
+
type="type",
|
|
19750
|
+
|
|
19751
|
+
# the properties below are optional
|
|
19752
|
+
action="action",
|
|
19753
|
+
enabled=False
|
|
19634
19754
|
)
|
|
19635
19755
|
'''
|
|
19636
19756
|
if __debug__:
|
|
19637
19757
|
type_hints = typing.get_type_hints(_typecheckingstub__7abffe970440d23a158f6e9ee12d25267eea84e0dde20b28718ce3f674ebab41)
|
|
19638
19758
|
check_type(argname="argument threshold", value=threshold, expected_type=type_hints["threshold"])
|
|
19639
19759
|
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
19760
|
+
check_type(argname="argument action", value=action, expected_type=type_hints["action"])
|
|
19761
|
+
check_type(argname="argument enabled", value=enabled, expected_type=type_hints["enabled"])
|
|
19640
19762
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
19641
19763
|
"threshold": threshold,
|
|
19642
19764
|
"type": type,
|
|
19643
19765
|
}
|
|
19766
|
+
if action is not None:
|
|
19767
|
+
self._values["action"] = action
|
|
19768
|
+
if enabled is not None:
|
|
19769
|
+
self._values["enabled"] = enabled
|
|
19644
19770
|
|
|
19645
19771
|
@builtins.property
|
|
19646
19772
|
def threshold(self) -> jsii.Number:
|
|
@@ -19662,6 +19788,24 @@ class CfnGuardrail(
|
|
|
19662
19788
|
assert result is not None, "Required property 'type' is missing"
|
|
19663
19789
|
return typing.cast(builtins.str, result)
|
|
19664
19790
|
|
|
19791
|
+
@builtins.property
|
|
19792
|
+
def action(self) -> typing.Optional[builtins.str]:
|
|
19793
|
+
'''
|
|
19794
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contextualgroundingfilterconfig.html#cfn-bedrock-guardrail-contextualgroundingfilterconfig-action
|
|
19795
|
+
'''
|
|
19796
|
+
result = self._values.get("action")
|
|
19797
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
19798
|
+
|
|
19799
|
+
@builtins.property
|
|
19800
|
+
def enabled(
|
|
19801
|
+
self,
|
|
19802
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
19803
|
+
'''
|
|
19804
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contextualgroundingfilterconfig.html#cfn-bedrock-guardrail-contextualgroundingfilterconfig-enabled
|
|
19805
|
+
'''
|
|
19806
|
+
result = self._values.get("enabled")
|
|
19807
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
19808
|
+
|
|
19665
19809
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
19666
19810
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
19667
19811
|
|
|
@@ -19700,7 +19844,11 @@ class CfnGuardrail(
|
|
|
19700
19844
|
contextual_grounding_policy_config_property = bedrock.CfnGuardrail.ContextualGroundingPolicyConfigProperty(
|
|
19701
19845
|
filters_config=[bedrock.CfnGuardrail.ContextualGroundingFilterConfigProperty(
|
|
19702
19846
|
threshold=123,
|
|
19703
|
-
type="type"
|
|
19847
|
+
type="type",
|
|
19848
|
+
|
|
19849
|
+
# the properties below are optional
|
|
19850
|
+
action="action",
|
|
19851
|
+
enabled=False
|
|
19704
19852
|
)]
|
|
19705
19853
|
)
|
|
19706
19854
|
'''
|
|
@@ -19737,13 +19885,31 @@ class CfnGuardrail(
|
|
|
19737
19885
|
@jsii.data_type(
|
|
19738
19886
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.ManagedWordsConfigProperty",
|
|
19739
19887
|
jsii_struct_bases=[],
|
|
19740
|
-
name_mapping={
|
|
19888
|
+
name_mapping={
|
|
19889
|
+
"type": "type",
|
|
19890
|
+
"input_action": "inputAction",
|
|
19891
|
+
"input_enabled": "inputEnabled",
|
|
19892
|
+
"output_action": "outputAction",
|
|
19893
|
+
"output_enabled": "outputEnabled",
|
|
19894
|
+
},
|
|
19741
19895
|
)
|
|
19742
19896
|
class ManagedWordsConfigProperty:
|
|
19743
|
-
def __init__(
|
|
19897
|
+
def __init__(
|
|
19898
|
+
self,
|
|
19899
|
+
*,
|
|
19900
|
+
type: builtins.str,
|
|
19901
|
+
input_action: typing.Optional[builtins.str] = None,
|
|
19902
|
+
input_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
19903
|
+
output_action: typing.Optional[builtins.str] = None,
|
|
19904
|
+
output_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
19905
|
+
) -> None:
|
|
19744
19906
|
'''The managed word list to configure for the guardrail.
|
|
19745
19907
|
|
|
19746
19908
|
:param type: The managed word type to configure for the guardrail.
|
|
19909
|
+
:param input_action:
|
|
19910
|
+
:param input_enabled:
|
|
19911
|
+
:param output_action:
|
|
19912
|
+
:param output_enabled:
|
|
19747
19913
|
|
|
19748
19914
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-managedwordsconfig.html
|
|
19749
19915
|
:exampleMetadata: fixture=_generated
|
|
@@ -19755,15 +19921,33 @@ class CfnGuardrail(
|
|
|
19755
19921
|
from aws_cdk import aws_bedrock as bedrock
|
|
19756
19922
|
|
|
19757
19923
|
managed_words_config_property = bedrock.CfnGuardrail.ManagedWordsConfigProperty(
|
|
19758
|
-
type="type"
|
|
19924
|
+
type="type",
|
|
19925
|
+
|
|
19926
|
+
# the properties below are optional
|
|
19927
|
+
input_action="inputAction",
|
|
19928
|
+
input_enabled=False,
|
|
19929
|
+
output_action="outputAction",
|
|
19930
|
+
output_enabled=False
|
|
19759
19931
|
)
|
|
19760
19932
|
'''
|
|
19761
19933
|
if __debug__:
|
|
19762
19934
|
type_hints = typing.get_type_hints(_typecheckingstub__a4bf7d4d57eaea6d7c62d6852c2666ebfc7a95d0b72269c42fb757f13cdcece6)
|
|
19763
19935
|
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
19936
|
+
check_type(argname="argument input_action", value=input_action, expected_type=type_hints["input_action"])
|
|
19937
|
+
check_type(argname="argument input_enabled", value=input_enabled, expected_type=type_hints["input_enabled"])
|
|
19938
|
+
check_type(argname="argument output_action", value=output_action, expected_type=type_hints["output_action"])
|
|
19939
|
+
check_type(argname="argument output_enabled", value=output_enabled, expected_type=type_hints["output_enabled"])
|
|
19764
19940
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
19765
19941
|
"type": type,
|
|
19766
19942
|
}
|
|
19943
|
+
if input_action is not None:
|
|
19944
|
+
self._values["input_action"] = input_action
|
|
19945
|
+
if input_enabled is not None:
|
|
19946
|
+
self._values["input_enabled"] = input_enabled
|
|
19947
|
+
if output_action is not None:
|
|
19948
|
+
self._values["output_action"] = output_action
|
|
19949
|
+
if output_enabled is not None:
|
|
19950
|
+
self._values["output_enabled"] = output_enabled
|
|
19767
19951
|
|
|
19768
19952
|
@builtins.property
|
|
19769
19953
|
def type(self) -> builtins.str:
|
|
@@ -19775,6 +19959,42 @@ class CfnGuardrail(
|
|
|
19775
19959
|
assert result is not None, "Required property 'type' is missing"
|
|
19776
19960
|
return typing.cast(builtins.str, result)
|
|
19777
19961
|
|
|
19962
|
+
@builtins.property
|
|
19963
|
+
def input_action(self) -> typing.Optional[builtins.str]:
|
|
19964
|
+
'''
|
|
19965
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-managedwordsconfig.html#cfn-bedrock-guardrail-managedwordsconfig-inputaction
|
|
19966
|
+
'''
|
|
19967
|
+
result = self._values.get("input_action")
|
|
19968
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
19969
|
+
|
|
19970
|
+
@builtins.property
|
|
19971
|
+
def input_enabled(
|
|
19972
|
+
self,
|
|
19973
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
19974
|
+
'''
|
|
19975
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-managedwordsconfig.html#cfn-bedrock-guardrail-managedwordsconfig-inputenabled
|
|
19976
|
+
'''
|
|
19977
|
+
result = self._values.get("input_enabled")
|
|
19978
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
19979
|
+
|
|
19980
|
+
@builtins.property
|
|
19981
|
+
def output_action(self) -> typing.Optional[builtins.str]:
|
|
19982
|
+
'''
|
|
19983
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-managedwordsconfig.html#cfn-bedrock-guardrail-managedwordsconfig-outputaction
|
|
19984
|
+
'''
|
|
19985
|
+
result = self._values.get("output_action")
|
|
19986
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
19987
|
+
|
|
19988
|
+
@builtins.property
|
|
19989
|
+
def output_enabled(
|
|
19990
|
+
self,
|
|
19991
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
19992
|
+
'''
|
|
19993
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-managedwordsconfig.html#cfn-bedrock-guardrail-managedwordsconfig-outputenabled
|
|
19994
|
+
'''
|
|
19995
|
+
result = self._values.get("output_enabled")
|
|
19996
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
19997
|
+
|
|
19778
19998
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
19779
19999
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
19780
20000
|
|
|
@@ -19789,14 +20009,34 @@ class CfnGuardrail(
|
|
|
19789
20009
|
@jsii.data_type(
|
|
19790
20010
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.PiiEntityConfigProperty",
|
|
19791
20011
|
jsii_struct_bases=[],
|
|
19792
|
-
name_mapping={
|
|
20012
|
+
name_mapping={
|
|
20013
|
+
"action": "action",
|
|
20014
|
+
"type": "type",
|
|
20015
|
+
"input_action": "inputAction",
|
|
20016
|
+
"input_enabled": "inputEnabled",
|
|
20017
|
+
"output_action": "outputAction",
|
|
20018
|
+
"output_enabled": "outputEnabled",
|
|
20019
|
+
},
|
|
19793
20020
|
)
|
|
19794
20021
|
class PiiEntityConfigProperty:
|
|
19795
|
-
def __init__(
|
|
20022
|
+
def __init__(
|
|
20023
|
+
self,
|
|
20024
|
+
*,
|
|
20025
|
+
action: builtins.str,
|
|
20026
|
+
type: builtins.str,
|
|
20027
|
+
input_action: typing.Optional[builtins.str] = None,
|
|
20028
|
+
input_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
20029
|
+
output_action: typing.Optional[builtins.str] = None,
|
|
20030
|
+
output_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
20031
|
+
) -> None:
|
|
19796
20032
|
'''The PII entity to configure for the guardrail.
|
|
19797
20033
|
|
|
19798
20034
|
:param action: Configure guardrail action when the PII entity is detected.
|
|
19799
20035
|
:param type: Configure guardrail type when the PII entity is detected. The following PIIs are used to block or mask sensitive information: - *General* - *ADDRESS* A physical address, such as "100 Main Street, Anytown, USA" or "Suite #12, Building 123". An address can include information such as the street, building, location, city, state, country, county, zip code, precinct, and neighborhood. - *AGE* An individual's age, including the quantity and unit of time. For example, in the phrase "I am 40 years old," Guardrails recognizes "40 years" as an age. - *NAME* An individual's name. This entity type does not include titles, such as Dr., Mr., Mrs., or Miss. guardrails doesn't apply this entity type to names that are part of organizations or addresses. For example, guardrails recognizes the "John Doe Organization" as an organization, and it recognizes "Jane Doe Street" as an address. - *EMAIL* An email address, such as *marymajor@email.com* . - *PHONE* A phone number. This entity type also includes fax and pager numbers. - *USERNAME* A user name that identifies an account, such as a login name, screen name, nick name, or handle. - *PASSWORD* An alphanumeric string that is used as a password, such as "* *very20special#pass** ". - *DRIVER_ID* The number assigned to a driver's license, which is an official document permitting an individual to operate one or more motorized vehicles on a public road. A driver's license number consists of alphanumeric characters. - *LICENSE_PLATE* A license plate for a vehicle is issued by the state or country where the vehicle is registered. The format for passenger vehicles is typically five to eight digits, consisting of upper-case letters and numbers. The format varies depending on the location of the issuing state or country. - *VEHICLE_IDENTIFICATION_NUMBER* A Vehicle Identification Number (VIN) uniquely identifies a vehicle. VIN content and format are defined in the *ISO 3779* specification. Each country has specific codes and formats for VINs. - *Finance* - *CREDIT_DEBIT_CARD_CVV* A three-digit card verification code (CVV) that is present on VISA, MasterCard, and Discover credit and debit cards. For American Express credit or debit cards, the CVV is a four-digit numeric code. - *CREDIT_DEBIT_CARD_EXPIRY* The expiration date for a credit or debit card. This number is usually four digits long and is often formatted as *month/year* or *MM/YY* . Guardrails recognizes expiration dates such as *01/21* , *01/2021* , and *Jan 2021* . - *CREDIT_DEBIT_CARD_NUMBER* The number for a credit or debit card. These numbers can vary from 13 to 16 digits in length. However, Amazon Comprehend also recognizes credit or debit card numbers when only the last four digits are present. - *PIN* A four-digit personal identification number (PIN) with which you can access your bank account. - *INTERNATIONAL_BANK_ACCOUNT_NUMBER* An International Bank Account Number has specific formats in each country. For more information, see `www.iban.com/structure <https://docs.aws.amazon.com/https://www.iban.com/structure>`_ . - *SWIFT_CODE* A SWIFT code is a standard format of Bank Identifier Code (BIC) used to specify a particular bank or branch. Banks use these codes for money transfers such as international wire transfers. SWIFT codes consist of eight or 11 characters. The 11-digit codes refer to specific branches, while eight-digit codes (or 11-digit codes ending in 'XXX') refer to the head or primary office. - *IT* - *IP_ADDRESS* An IPv4 address, such as *198.51.100.0* . - *MAC_ADDRESS* A *media access control* (MAC) address is a unique identifier assigned to a network interface controller (NIC). - *URL* A web address, such as *www.example.com* . - *AWS_ACCESS_KEY* A unique identifier that's associated with a secret access key; you use the access key ID and secret access key to sign programmatic AWS requests cryptographically. - *AWS_SECRET_KEY* A unique identifier that's associated with an access key. You use the access key ID and secret access key to sign programmatic AWS requests cryptographically. - *USA specific* - *US_BANK_ACCOUNT_NUMBER* A US bank account number, which is typically 10 to 12 digits long. - *US_BANK_ROUTING_NUMBER* A US bank account routing number. These are typically nine digits long, - *US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER* A US Individual Taxpayer Identification Number (ITIN) is a nine-digit number that starts with a "9" and contain a "7" or "8" as the fourth digit. An ITIN can be formatted with a space or a dash after the third and forth digits. - *US_PASSPORT_NUMBER* A US passport number. Passport numbers range from six to nine alphanumeric characters. - *US_SOCIAL_SECURITY_NUMBER* A US Social Security Number (SSN) is a nine-digit number that is issued to US citizens, permanent residents, and temporary working residents. - *Canada specific* - *CA_HEALTH_NUMBER* A Canadian Health Service Number is a 10-digit unique identifier, required for individuals to access healthcare benefits. - *CA_SOCIAL_INSURANCE_NUMBER* A Canadian Social Insurance Number (SIN) is a nine-digit unique identifier, required for individuals to access government programs and benefits. The SIN is formatted as three groups of three digits, such as *123-456-789* . A SIN can be validated through a simple check-digit process called the `Luhn algorithm <https://docs.aws.amazon.com/https://www.wikipedia.org/wiki/Luhn_algorithm>`_ . - *UK Specific* - *UK_NATIONAL_HEALTH_SERVICE_NUMBER* A UK National Health Service Number is a 10-17 digit number, such as *485 777 3456* . The current system formats the 10-digit number with spaces after the third and sixth digits. The final digit is an error-detecting checksum. - *UK_NATIONAL_INSURANCE_NUMBER* A UK National Insurance Number (NINO) provides individuals with access to National Insurance (social security) benefits. It is also used for some purposes in the UK tax system. The number is nine digits long and starts with two letters, followed by six numbers and one letter. A NINO can be formatted with a space or a dash after the two letters and after the second, forth, and sixth digits. - *UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER* A UK Unique Taxpayer Reference (UTR) is a 10-digit number that identifies a taxpayer or a business. - *Custom* - *Regex filter* - You can use a regular expressions to define patterns for a guardrail to recognize and act upon such as serial number, booking ID etc..
|
|
20036
|
+
:param input_action: Options for sensitive information action.
|
|
20037
|
+
:param input_enabled:
|
|
20038
|
+
:param output_action: Options for sensitive information action.
|
|
20039
|
+
:param output_enabled:
|
|
19800
20040
|
|
|
19801
20041
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-piientityconfig.html
|
|
19802
20042
|
:exampleMetadata: fixture=_generated
|
|
@@ -19809,17 +20049,35 @@ class CfnGuardrail(
|
|
|
19809
20049
|
|
|
19810
20050
|
pii_entity_config_property = bedrock.CfnGuardrail.PiiEntityConfigProperty(
|
|
19811
20051
|
action="action",
|
|
19812
|
-
type="type"
|
|
20052
|
+
type="type",
|
|
20053
|
+
|
|
20054
|
+
# the properties below are optional
|
|
20055
|
+
input_action="inputAction",
|
|
20056
|
+
input_enabled=False,
|
|
20057
|
+
output_action="outputAction",
|
|
20058
|
+
output_enabled=False
|
|
19813
20059
|
)
|
|
19814
20060
|
'''
|
|
19815
20061
|
if __debug__:
|
|
19816
20062
|
type_hints = typing.get_type_hints(_typecheckingstub__b1b637cd24a7601fa9e29e9667a11a4859f00240df5f6c858a1c38c3b51a9ece)
|
|
19817
20063
|
check_type(argname="argument action", value=action, expected_type=type_hints["action"])
|
|
19818
20064
|
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
20065
|
+
check_type(argname="argument input_action", value=input_action, expected_type=type_hints["input_action"])
|
|
20066
|
+
check_type(argname="argument input_enabled", value=input_enabled, expected_type=type_hints["input_enabled"])
|
|
20067
|
+
check_type(argname="argument output_action", value=output_action, expected_type=type_hints["output_action"])
|
|
20068
|
+
check_type(argname="argument output_enabled", value=output_enabled, expected_type=type_hints["output_enabled"])
|
|
19819
20069
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
19820
20070
|
"action": action,
|
|
19821
20071
|
"type": type,
|
|
19822
20072
|
}
|
|
20073
|
+
if input_action is not None:
|
|
20074
|
+
self._values["input_action"] = input_action
|
|
20075
|
+
if input_enabled is not None:
|
|
20076
|
+
self._values["input_enabled"] = input_enabled
|
|
20077
|
+
if output_action is not None:
|
|
20078
|
+
self._values["output_action"] = output_action
|
|
20079
|
+
if output_enabled is not None:
|
|
20080
|
+
self._values["output_enabled"] = output_enabled
|
|
19823
20081
|
|
|
19824
20082
|
@builtins.property
|
|
19825
20083
|
def action(self) -> builtins.str:
|
|
@@ -19982,6 +20240,44 @@ class CfnGuardrail(
|
|
|
19982
20240
|
assert result is not None, "Required property 'type' is missing"
|
|
19983
20241
|
return typing.cast(builtins.str, result)
|
|
19984
20242
|
|
|
20243
|
+
@builtins.property
|
|
20244
|
+
def input_action(self) -> typing.Optional[builtins.str]:
|
|
20245
|
+
'''Options for sensitive information action.
|
|
20246
|
+
|
|
20247
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-piientityconfig.html#cfn-bedrock-guardrail-piientityconfig-inputaction
|
|
20248
|
+
'''
|
|
20249
|
+
result = self._values.get("input_action")
|
|
20250
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
20251
|
+
|
|
20252
|
+
@builtins.property
|
|
20253
|
+
def input_enabled(
|
|
20254
|
+
self,
|
|
20255
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
20256
|
+
'''
|
|
20257
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-piientityconfig.html#cfn-bedrock-guardrail-piientityconfig-inputenabled
|
|
20258
|
+
'''
|
|
20259
|
+
result = self._values.get("input_enabled")
|
|
20260
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
20261
|
+
|
|
20262
|
+
@builtins.property
|
|
20263
|
+
def output_action(self) -> typing.Optional[builtins.str]:
|
|
20264
|
+
'''Options for sensitive information action.
|
|
20265
|
+
|
|
20266
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-piientityconfig.html#cfn-bedrock-guardrail-piientityconfig-outputaction
|
|
20267
|
+
'''
|
|
20268
|
+
result = self._values.get("output_action")
|
|
20269
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
20270
|
+
|
|
20271
|
+
@builtins.property
|
|
20272
|
+
def output_enabled(
|
|
20273
|
+
self,
|
|
20274
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
20275
|
+
'''
|
|
20276
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-piientityconfig.html#cfn-bedrock-guardrail-piientityconfig-outputenabled
|
|
20277
|
+
'''
|
|
20278
|
+
result = self._values.get("output_enabled")
|
|
20279
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
20280
|
+
|
|
19985
20281
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
19986
20282
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
19987
20283
|
|
|
@@ -20001,6 +20297,10 @@ class CfnGuardrail(
|
|
|
20001
20297
|
"name": "name",
|
|
20002
20298
|
"pattern": "pattern",
|
|
20003
20299
|
"description": "description",
|
|
20300
|
+
"input_action": "inputAction",
|
|
20301
|
+
"input_enabled": "inputEnabled",
|
|
20302
|
+
"output_action": "outputAction",
|
|
20303
|
+
"output_enabled": "outputEnabled",
|
|
20004
20304
|
},
|
|
20005
20305
|
)
|
|
20006
20306
|
class RegexConfigProperty:
|
|
@@ -20011,6 +20311,10 @@ class CfnGuardrail(
|
|
|
20011
20311
|
name: builtins.str,
|
|
20012
20312
|
pattern: builtins.str,
|
|
20013
20313
|
description: typing.Optional[builtins.str] = None,
|
|
20314
|
+
input_action: typing.Optional[builtins.str] = None,
|
|
20315
|
+
input_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
20316
|
+
output_action: typing.Optional[builtins.str] = None,
|
|
20317
|
+
output_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
20014
20318
|
) -> None:
|
|
20015
20319
|
'''The regular expression to configure for the guardrail.
|
|
20016
20320
|
|
|
@@ -20018,6 +20322,10 @@ class CfnGuardrail(
|
|
|
20018
20322
|
:param name: The name of the regular expression to configure for the guardrail.
|
|
20019
20323
|
:param pattern: The regular expression pattern to configure for the guardrail.
|
|
20020
20324
|
:param description: The description of the regular expression to configure for the guardrail.
|
|
20325
|
+
:param input_action: Options for sensitive information action.
|
|
20326
|
+
:param input_enabled:
|
|
20327
|
+
:param output_action: Options for sensitive information action.
|
|
20328
|
+
:param output_enabled:
|
|
20021
20329
|
|
|
20022
20330
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html
|
|
20023
20331
|
:exampleMetadata: fixture=_generated
|
|
@@ -20034,7 +20342,11 @@ class CfnGuardrail(
|
|
|
20034
20342
|
pattern="pattern",
|
|
20035
20343
|
|
|
20036
20344
|
# the properties below are optional
|
|
20037
|
-
description="description"
|
|
20345
|
+
description="description",
|
|
20346
|
+
input_action="inputAction",
|
|
20347
|
+
input_enabled=False,
|
|
20348
|
+
output_action="outputAction",
|
|
20349
|
+
output_enabled=False
|
|
20038
20350
|
)
|
|
20039
20351
|
'''
|
|
20040
20352
|
if __debug__:
|
|
@@ -20043,6 +20355,10 @@ class CfnGuardrail(
|
|
|
20043
20355
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
20044
20356
|
check_type(argname="argument pattern", value=pattern, expected_type=type_hints["pattern"])
|
|
20045
20357
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
20358
|
+
check_type(argname="argument input_action", value=input_action, expected_type=type_hints["input_action"])
|
|
20359
|
+
check_type(argname="argument input_enabled", value=input_enabled, expected_type=type_hints["input_enabled"])
|
|
20360
|
+
check_type(argname="argument output_action", value=output_action, expected_type=type_hints["output_action"])
|
|
20361
|
+
check_type(argname="argument output_enabled", value=output_enabled, expected_type=type_hints["output_enabled"])
|
|
20046
20362
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
20047
20363
|
"action": action,
|
|
20048
20364
|
"name": name,
|
|
@@ -20050,6 +20366,14 @@ class CfnGuardrail(
|
|
|
20050
20366
|
}
|
|
20051
20367
|
if description is not None:
|
|
20052
20368
|
self._values["description"] = description
|
|
20369
|
+
if input_action is not None:
|
|
20370
|
+
self._values["input_action"] = input_action
|
|
20371
|
+
if input_enabled is not None:
|
|
20372
|
+
self._values["input_enabled"] = input_enabled
|
|
20373
|
+
if output_action is not None:
|
|
20374
|
+
self._values["output_action"] = output_action
|
|
20375
|
+
if output_enabled is not None:
|
|
20376
|
+
self._values["output_enabled"] = output_enabled
|
|
20053
20377
|
|
|
20054
20378
|
@builtins.property
|
|
20055
20379
|
def action(self) -> builtins.str:
|
|
@@ -20090,6 +20414,44 @@ class CfnGuardrail(
|
|
|
20090
20414
|
result = self._values.get("description")
|
|
20091
20415
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
20092
20416
|
|
|
20417
|
+
@builtins.property
|
|
20418
|
+
def input_action(self) -> typing.Optional[builtins.str]:
|
|
20419
|
+
'''Options for sensitive information action.
|
|
20420
|
+
|
|
20421
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html#cfn-bedrock-guardrail-regexconfig-inputaction
|
|
20422
|
+
'''
|
|
20423
|
+
result = self._values.get("input_action")
|
|
20424
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
20425
|
+
|
|
20426
|
+
@builtins.property
|
|
20427
|
+
def input_enabled(
|
|
20428
|
+
self,
|
|
20429
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
20430
|
+
'''
|
|
20431
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html#cfn-bedrock-guardrail-regexconfig-inputenabled
|
|
20432
|
+
'''
|
|
20433
|
+
result = self._values.get("input_enabled")
|
|
20434
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
20435
|
+
|
|
20436
|
+
@builtins.property
|
|
20437
|
+
def output_action(self) -> typing.Optional[builtins.str]:
|
|
20438
|
+
'''Options for sensitive information action.
|
|
20439
|
+
|
|
20440
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html#cfn-bedrock-guardrail-regexconfig-outputaction
|
|
20441
|
+
'''
|
|
20442
|
+
result = self._values.get("output_action")
|
|
20443
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
20444
|
+
|
|
20445
|
+
@builtins.property
|
|
20446
|
+
def output_enabled(
|
|
20447
|
+
self,
|
|
20448
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
20449
|
+
'''
|
|
20450
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html#cfn-bedrock-guardrail-regexconfig-outputenabled
|
|
20451
|
+
'''
|
|
20452
|
+
result = self._values.get("output_enabled")
|
|
20453
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
20454
|
+
|
|
20093
20455
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
20094
20456
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
20095
20457
|
|
|
@@ -20133,7 +20495,13 @@ class CfnGuardrail(
|
|
|
20133
20495
|
sensitive_information_policy_config_property = bedrock.CfnGuardrail.SensitiveInformationPolicyConfigProperty(
|
|
20134
20496
|
pii_entities_config=[bedrock.CfnGuardrail.PiiEntityConfigProperty(
|
|
20135
20497
|
action="action",
|
|
20136
|
-
type="type"
|
|
20498
|
+
type="type",
|
|
20499
|
+
|
|
20500
|
+
# the properties below are optional
|
|
20501
|
+
input_action="inputAction",
|
|
20502
|
+
input_enabled=False,
|
|
20503
|
+
output_action="outputAction",
|
|
20504
|
+
output_enabled=False
|
|
20137
20505
|
)],
|
|
20138
20506
|
regexes_config=[bedrock.CfnGuardrail.RegexConfigProperty(
|
|
20139
20507
|
action="action",
|
|
@@ -20141,7 +20509,11 @@ class CfnGuardrail(
|
|
|
20141
20509
|
pattern="pattern",
|
|
20142
20510
|
|
|
20143
20511
|
# the properties below are optional
|
|
20144
|
-
description="description"
|
|
20512
|
+
description="description",
|
|
20513
|
+
input_action="inputAction",
|
|
20514
|
+
input_enabled=False,
|
|
20515
|
+
output_action="outputAction",
|
|
20516
|
+
output_enabled=False
|
|
20145
20517
|
)]
|
|
20146
20518
|
)
|
|
20147
20519
|
'''
|
|
@@ -20196,6 +20568,10 @@ class CfnGuardrail(
|
|
|
20196
20568
|
"name": "name",
|
|
20197
20569
|
"type": "type",
|
|
20198
20570
|
"examples": "examples",
|
|
20571
|
+
"input_action": "inputAction",
|
|
20572
|
+
"input_enabled": "inputEnabled",
|
|
20573
|
+
"output_action": "outputAction",
|
|
20574
|
+
"output_enabled": "outputEnabled",
|
|
20199
20575
|
},
|
|
20200
20576
|
)
|
|
20201
20577
|
class TopicConfigProperty:
|
|
@@ -20206,6 +20582,10 @@ class CfnGuardrail(
|
|
|
20206
20582
|
name: builtins.str,
|
|
20207
20583
|
type: builtins.str,
|
|
20208
20584
|
examples: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
20585
|
+
input_action: typing.Optional[builtins.str] = None,
|
|
20586
|
+
input_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
20587
|
+
output_action: typing.Optional[builtins.str] = None,
|
|
20588
|
+
output_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
20209
20589
|
) -> None:
|
|
20210
20590
|
'''Details about topics for the guardrail to identify and deny.
|
|
20211
20591
|
|
|
@@ -20213,6 +20593,10 @@ class CfnGuardrail(
|
|
|
20213
20593
|
:param name: The name of the topic to deny.
|
|
20214
20594
|
:param type: Specifies to deny the topic.
|
|
20215
20595
|
:param examples: A list of prompts, each of which is an example of a prompt that can be categorized as belonging to the topic.
|
|
20596
|
+
:param input_action:
|
|
20597
|
+
:param input_enabled:
|
|
20598
|
+
:param output_action:
|
|
20599
|
+
:param output_enabled:
|
|
20216
20600
|
|
|
20217
20601
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html
|
|
20218
20602
|
:exampleMetadata: fixture=_generated
|
|
@@ -20229,7 +20613,11 @@ class CfnGuardrail(
|
|
|
20229
20613
|
type="type",
|
|
20230
20614
|
|
|
20231
20615
|
# the properties below are optional
|
|
20232
|
-
examples=["examples"]
|
|
20616
|
+
examples=["examples"],
|
|
20617
|
+
input_action="inputAction",
|
|
20618
|
+
input_enabled=False,
|
|
20619
|
+
output_action="outputAction",
|
|
20620
|
+
output_enabled=False
|
|
20233
20621
|
)
|
|
20234
20622
|
'''
|
|
20235
20623
|
if __debug__:
|
|
@@ -20238,6 +20626,10 @@ class CfnGuardrail(
|
|
|
20238
20626
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
20239
20627
|
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
20240
20628
|
check_type(argname="argument examples", value=examples, expected_type=type_hints["examples"])
|
|
20629
|
+
check_type(argname="argument input_action", value=input_action, expected_type=type_hints["input_action"])
|
|
20630
|
+
check_type(argname="argument input_enabled", value=input_enabled, expected_type=type_hints["input_enabled"])
|
|
20631
|
+
check_type(argname="argument output_action", value=output_action, expected_type=type_hints["output_action"])
|
|
20632
|
+
check_type(argname="argument output_enabled", value=output_enabled, expected_type=type_hints["output_enabled"])
|
|
20241
20633
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
20242
20634
|
"definition": definition,
|
|
20243
20635
|
"name": name,
|
|
@@ -20245,6 +20637,14 @@ class CfnGuardrail(
|
|
|
20245
20637
|
}
|
|
20246
20638
|
if examples is not None:
|
|
20247
20639
|
self._values["examples"] = examples
|
|
20640
|
+
if input_action is not None:
|
|
20641
|
+
self._values["input_action"] = input_action
|
|
20642
|
+
if input_enabled is not None:
|
|
20643
|
+
self._values["input_enabled"] = input_enabled
|
|
20644
|
+
if output_action is not None:
|
|
20645
|
+
self._values["output_action"] = output_action
|
|
20646
|
+
if output_enabled is not None:
|
|
20647
|
+
self._values["output_enabled"] = output_enabled
|
|
20248
20648
|
|
|
20249
20649
|
@builtins.property
|
|
20250
20650
|
def definition(self) -> builtins.str:
|
|
@@ -20285,6 +20685,42 @@ class CfnGuardrail(
|
|
|
20285
20685
|
result = self._values.get("examples")
|
|
20286
20686
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
20287
20687
|
|
|
20688
|
+
@builtins.property
|
|
20689
|
+
def input_action(self) -> typing.Optional[builtins.str]:
|
|
20690
|
+
'''
|
|
20691
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html#cfn-bedrock-guardrail-topicconfig-inputaction
|
|
20692
|
+
'''
|
|
20693
|
+
result = self._values.get("input_action")
|
|
20694
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
20695
|
+
|
|
20696
|
+
@builtins.property
|
|
20697
|
+
def input_enabled(
|
|
20698
|
+
self,
|
|
20699
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
20700
|
+
'''
|
|
20701
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html#cfn-bedrock-guardrail-topicconfig-inputenabled
|
|
20702
|
+
'''
|
|
20703
|
+
result = self._values.get("input_enabled")
|
|
20704
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
20705
|
+
|
|
20706
|
+
@builtins.property
|
|
20707
|
+
def output_action(self) -> typing.Optional[builtins.str]:
|
|
20708
|
+
'''
|
|
20709
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html#cfn-bedrock-guardrail-topicconfig-outputaction
|
|
20710
|
+
'''
|
|
20711
|
+
result = self._values.get("output_action")
|
|
20712
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
20713
|
+
|
|
20714
|
+
@builtins.property
|
|
20715
|
+
def output_enabled(
|
|
20716
|
+
self,
|
|
20717
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
20718
|
+
'''
|
|
20719
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html#cfn-bedrock-guardrail-topicconfig-outputenabled
|
|
20720
|
+
'''
|
|
20721
|
+
result = self._values.get("output_enabled")
|
|
20722
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
20723
|
+
|
|
20288
20724
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
20289
20725
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
20290
20726
|
|
|
@@ -20327,7 +20763,11 @@ class CfnGuardrail(
|
|
|
20327
20763
|
type="type",
|
|
20328
20764
|
|
|
20329
20765
|
# the properties below are optional
|
|
20330
|
-
examples=["examples"]
|
|
20766
|
+
examples=["examples"],
|
|
20767
|
+
input_action="inputAction",
|
|
20768
|
+
input_enabled=False,
|
|
20769
|
+
output_action="outputAction",
|
|
20770
|
+
output_enabled=False
|
|
20331
20771
|
)]
|
|
20332
20772
|
)
|
|
20333
20773
|
'''
|
|
@@ -20364,13 +20804,31 @@ class CfnGuardrail(
|
|
|
20364
20804
|
@jsii.data_type(
|
|
20365
20805
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.WordConfigProperty",
|
|
20366
20806
|
jsii_struct_bases=[],
|
|
20367
|
-
name_mapping={
|
|
20807
|
+
name_mapping={
|
|
20808
|
+
"text": "text",
|
|
20809
|
+
"input_action": "inputAction",
|
|
20810
|
+
"input_enabled": "inputEnabled",
|
|
20811
|
+
"output_action": "outputAction",
|
|
20812
|
+
"output_enabled": "outputEnabled",
|
|
20813
|
+
},
|
|
20368
20814
|
)
|
|
20369
20815
|
class WordConfigProperty:
|
|
20370
|
-
def __init__(
|
|
20816
|
+
def __init__(
|
|
20817
|
+
self,
|
|
20818
|
+
*,
|
|
20819
|
+
text: builtins.str,
|
|
20820
|
+
input_action: typing.Optional[builtins.str] = None,
|
|
20821
|
+
input_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
20822
|
+
output_action: typing.Optional[builtins.str] = None,
|
|
20823
|
+
output_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
20824
|
+
) -> None:
|
|
20371
20825
|
'''A word to configure for the guardrail.
|
|
20372
20826
|
|
|
20373
20827
|
:param text: Text of the word configured for the guardrail to block.
|
|
20828
|
+
:param input_action:
|
|
20829
|
+
:param input_enabled:
|
|
20830
|
+
:param output_action:
|
|
20831
|
+
:param output_enabled:
|
|
20374
20832
|
|
|
20375
20833
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordconfig.html
|
|
20376
20834
|
:exampleMetadata: fixture=_generated
|
|
@@ -20382,15 +20840,33 @@ class CfnGuardrail(
|
|
|
20382
20840
|
from aws_cdk import aws_bedrock as bedrock
|
|
20383
20841
|
|
|
20384
20842
|
word_config_property = bedrock.CfnGuardrail.WordConfigProperty(
|
|
20385
|
-
text="text"
|
|
20843
|
+
text="text",
|
|
20844
|
+
|
|
20845
|
+
# the properties below are optional
|
|
20846
|
+
input_action="inputAction",
|
|
20847
|
+
input_enabled=False,
|
|
20848
|
+
output_action="outputAction",
|
|
20849
|
+
output_enabled=False
|
|
20386
20850
|
)
|
|
20387
20851
|
'''
|
|
20388
20852
|
if __debug__:
|
|
20389
20853
|
type_hints = typing.get_type_hints(_typecheckingstub__8d97ba02e51405985a3642a48511f50ab8ebae582cdd068b6dec0252d49b5497)
|
|
20390
20854
|
check_type(argname="argument text", value=text, expected_type=type_hints["text"])
|
|
20855
|
+
check_type(argname="argument input_action", value=input_action, expected_type=type_hints["input_action"])
|
|
20856
|
+
check_type(argname="argument input_enabled", value=input_enabled, expected_type=type_hints["input_enabled"])
|
|
20857
|
+
check_type(argname="argument output_action", value=output_action, expected_type=type_hints["output_action"])
|
|
20858
|
+
check_type(argname="argument output_enabled", value=output_enabled, expected_type=type_hints["output_enabled"])
|
|
20391
20859
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
20392
20860
|
"text": text,
|
|
20393
20861
|
}
|
|
20862
|
+
if input_action is not None:
|
|
20863
|
+
self._values["input_action"] = input_action
|
|
20864
|
+
if input_enabled is not None:
|
|
20865
|
+
self._values["input_enabled"] = input_enabled
|
|
20866
|
+
if output_action is not None:
|
|
20867
|
+
self._values["output_action"] = output_action
|
|
20868
|
+
if output_enabled is not None:
|
|
20869
|
+
self._values["output_enabled"] = output_enabled
|
|
20394
20870
|
|
|
20395
20871
|
@builtins.property
|
|
20396
20872
|
def text(self) -> builtins.str:
|
|
@@ -20402,6 +20878,42 @@ class CfnGuardrail(
|
|
|
20402
20878
|
assert result is not None, "Required property 'text' is missing"
|
|
20403
20879
|
return typing.cast(builtins.str, result)
|
|
20404
20880
|
|
|
20881
|
+
@builtins.property
|
|
20882
|
+
def input_action(self) -> typing.Optional[builtins.str]:
|
|
20883
|
+
'''
|
|
20884
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordconfig.html#cfn-bedrock-guardrail-wordconfig-inputaction
|
|
20885
|
+
'''
|
|
20886
|
+
result = self._values.get("input_action")
|
|
20887
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
20888
|
+
|
|
20889
|
+
@builtins.property
|
|
20890
|
+
def input_enabled(
|
|
20891
|
+
self,
|
|
20892
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
20893
|
+
'''
|
|
20894
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordconfig.html#cfn-bedrock-guardrail-wordconfig-inputenabled
|
|
20895
|
+
'''
|
|
20896
|
+
result = self._values.get("input_enabled")
|
|
20897
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
20898
|
+
|
|
20899
|
+
@builtins.property
|
|
20900
|
+
def output_action(self) -> typing.Optional[builtins.str]:
|
|
20901
|
+
'''
|
|
20902
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordconfig.html#cfn-bedrock-guardrail-wordconfig-outputaction
|
|
20903
|
+
'''
|
|
20904
|
+
result = self._values.get("output_action")
|
|
20905
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
20906
|
+
|
|
20907
|
+
@builtins.property
|
|
20908
|
+
def output_enabled(
|
|
20909
|
+
self,
|
|
20910
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
20911
|
+
'''
|
|
20912
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordconfig.html#cfn-bedrock-guardrail-wordconfig-outputenabled
|
|
20913
|
+
'''
|
|
20914
|
+
result = self._values.get("output_enabled")
|
|
20915
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
20916
|
+
|
|
20405
20917
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
20406
20918
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
20407
20919
|
|
|
@@ -20444,10 +20956,22 @@ class CfnGuardrail(
|
|
|
20444
20956
|
|
|
20445
20957
|
word_policy_config_property = bedrock.CfnGuardrail.WordPolicyConfigProperty(
|
|
20446
20958
|
managed_word_lists_config=[bedrock.CfnGuardrail.ManagedWordsConfigProperty(
|
|
20447
|
-
type="type"
|
|
20959
|
+
type="type",
|
|
20960
|
+
|
|
20961
|
+
# the properties below are optional
|
|
20962
|
+
input_action="inputAction",
|
|
20963
|
+
input_enabled=False,
|
|
20964
|
+
output_action="outputAction",
|
|
20965
|
+
output_enabled=False
|
|
20448
20966
|
)],
|
|
20449
20967
|
words_config=[bedrock.CfnGuardrail.WordConfigProperty(
|
|
20450
|
-
text="text"
|
|
20968
|
+
text="text",
|
|
20969
|
+
|
|
20970
|
+
# the properties below are optional
|
|
20971
|
+
input_action="inputAction",
|
|
20972
|
+
input_enabled=False,
|
|
20973
|
+
output_action="outputAction",
|
|
20974
|
+
output_enabled=False
|
|
20451
20975
|
)]
|
|
20452
20976
|
)
|
|
20453
20977
|
'''
|
|
@@ -20564,14 +21088,22 @@ class CfnGuardrailProps:
|
|
|
20564
21088
|
type="type",
|
|
20565
21089
|
|
|
20566
21090
|
# the properties below are optional
|
|
21091
|
+
input_action="inputAction",
|
|
21092
|
+
input_enabled=False,
|
|
20567
21093
|
input_modalities=["inputModalities"],
|
|
21094
|
+
output_action="outputAction",
|
|
21095
|
+
output_enabled=False,
|
|
20568
21096
|
output_modalities=["outputModalities"]
|
|
20569
21097
|
)]
|
|
20570
21098
|
),
|
|
20571
21099
|
contextual_grounding_policy_config=bedrock.CfnGuardrail.ContextualGroundingPolicyConfigProperty(
|
|
20572
21100
|
filters_config=[bedrock.CfnGuardrail.ContextualGroundingFilterConfigProperty(
|
|
20573
21101
|
threshold=123,
|
|
20574
|
-
type="type"
|
|
21102
|
+
type="type",
|
|
21103
|
+
|
|
21104
|
+
# the properties below are optional
|
|
21105
|
+
action="action",
|
|
21106
|
+
enabled=False
|
|
20575
21107
|
)]
|
|
20576
21108
|
),
|
|
20577
21109
|
description="description",
|
|
@@ -20579,7 +21111,13 @@ class CfnGuardrailProps:
|
|
|
20579
21111
|
sensitive_information_policy_config=bedrock.CfnGuardrail.SensitiveInformationPolicyConfigProperty(
|
|
20580
21112
|
pii_entities_config=[bedrock.CfnGuardrail.PiiEntityConfigProperty(
|
|
20581
21113
|
action="action",
|
|
20582
|
-
type="type"
|
|
21114
|
+
type="type",
|
|
21115
|
+
|
|
21116
|
+
# the properties below are optional
|
|
21117
|
+
input_action="inputAction",
|
|
21118
|
+
input_enabled=False,
|
|
21119
|
+
output_action="outputAction",
|
|
21120
|
+
output_enabled=False
|
|
20583
21121
|
)],
|
|
20584
21122
|
regexes_config=[bedrock.CfnGuardrail.RegexConfigProperty(
|
|
20585
21123
|
action="action",
|
|
@@ -20587,7 +21125,11 @@ class CfnGuardrailProps:
|
|
|
20587
21125
|
pattern="pattern",
|
|
20588
21126
|
|
|
20589
21127
|
# the properties below are optional
|
|
20590
|
-
description="description"
|
|
21128
|
+
description="description",
|
|
21129
|
+
input_action="inputAction",
|
|
21130
|
+
input_enabled=False,
|
|
21131
|
+
output_action="outputAction",
|
|
21132
|
+
output_enabled=False
|
|
20591
21133
|
)]
|
|
20592
21134
|
),
|
|
20593
21135
|
tags=[CfnTag(
|
|
@@ -20601,15 +21143,31 @@ class CfnGuardrailProps:
|
|
|
20601
21143
|
type="type",
|
|
20602
21144
|
|
|
20603
21145
|
# the properties below are optional
|
|
20604
|
-
examples=["examples"]
|
|
21146
|
+
examples=["examples"],
|
|
21147
|
+
input_action="inputAction",
|
|
21148
|
+
input_enabled=False,
|
|
21149
|
+
output_action="outputAction",
|
|
21150
|
+
output_enabled=False
|
|
20605
21151
|
)]
|
|
20606
21152
|
),
|
|
20607
21153
|
word_policy_config=bedrock.CfnGuardrail.WordPolicyConfigProperty(
|
|
20608
21154
|
managed_word_lists_config=[bedrock.CfnGuardrail.ManagedWordsConfigProperty(
|
|
20609
|
-
type="type"
|
|
21155
|
+
type="type",
|
|
21156
|
+
|
|
21157
|
+
# the properties below are optional
|
|
21158
|
+
input_action="inputAction",
|
|
21159
|
+
input_enabled=False,
|
|
21160
|
+
output_action="outputAction",
|
|
21161
|
+
output_enabled=False
|
|
20610
21162
|
)],
|
|
20611
21163
|
words_config=[bedrock.CfnGuardrail.WordConfigProperty(
|
|
20612
|
-
text="text"
|
|
21164
|
+
text="text",
|
|
21165
|
+
|
|
21166
|
+
# the properties below are optional
|
|
21167
|
+
input_action="inputAction",
|
|
21168
|
+
input_enabled=False,
|
|
21169
|
+
output_action="outputAction",
|
|
21170
|
+
output_enabled=False
|
|
20613
21171
|
)]
|
|
20614
21172
|
)
|
|
20615
21173
|
)
|
|
@@ -21143,7 +21701,8 @@ class CfnKnowledgeBase(
|
|
|
21143
21701
|
vector_index_name="vectorIndexName",
|
|
21144
21702
|
|
|
21145
21703
|
# the properties below are optional
|
|
21146
|
-
endpoint_service_name="endpointServiceName"
|
|
21704
|
+
endpoint_service_name="endpointServiceName",
|
|
21705
|
+
text_index_name="textIndexName"
|
|
21147
21706
|
),
|
|
21148
21707
|
neptune_analytics_configuration=bedrock.CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty(
|
|
21149
21708
|
field_mapping=bedrock.CfnKnowledgeBase.NeptuneAnalyticsFieldMappingProperty(
|
|
@@ -21152,6 +21711,16 @@ class CfnKnowledgeBase(
|
|
|
21152
21711
|
),
|
|
21153
21712
|
graph_arn="graphArn"
|
|
21154
21713
|
),
|
|
21714
|
+
opensearch_managed_cluster_configuration=bedrock.CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty(
|
|
21715
|
+
domain_arn="domainArn",
|
|
21716
|
+
domain_endpoint="domainEndpoint",
|
|
21717
|
+
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchManagedClusterFieldMappingProperty(
|
|
21718
|
+
metadata_field="metadataField",
|
|
21719
|
+
text_field="textField",
|
|
21720
|
+
vector_field="vectorField"
|
|
21721
|
+
),
|
|
21722
|
+
vector_index_name="vectorIndexName"
|
|
21723
|
+
),
|
|
21155
21724
|
opensearch_serverless_configuration=bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty(
|
|
21156
21725
|
collection_arn="collectionArn",
|
|
21157
21726
|
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty(
|
|
@@ -21179,7 +21748,10 @@ class CfnKnowledgeBase(
|
|
|
21179
21748
|
metadata_field="metadataField",
|
|
21180
21749
|
primary_key_field="primaryKeyField",
|
|
21181
21750
|
text_field="textField",
|
|
21182
|
-
vector_field="vectorField"
|
|
21751
|
+
vector_field="vectorField",
|
|
21752
|
+
|
|
21753
|
+
# the properties below are optional
|
|
21754
|
+
custom_metadata_field="customMetadataField"
|
|
21183
21755
|
),
|
|
21184
21756
|
resource_arn="resourceArn",
|
|
21185
21757
|
table_name="tableName"
|
|
@@ -21890,6 +22462,7 @@ class CfnKnowledgeBase(
|
|
|
21890
22462
|
"field_mapping": "fieldMapping",
|
|
21891
22463
|
"vector_index_name": "vectorIndexName",
|
|
21892
22464
|
"endpoint_service_name": "endpointServiceName",
|
|
22465
|
+
"text_index_name": "textIndexName",
|
|
21893
22466
|
},
|
|
21894
22467
|
)
|
|
21895
22468
|
class MongoDbAtlasConfigurationProperty:
|
|
@@ -21903,6 +22476,7 @@ class CfnKnowledgeBase(
|
|
|
21903
22476
|
field_mapping: typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.MongoDbAtlasFieldMappingProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
21904
22477
|
vector_index_name: builtins.str,
|
|
21905
22478
|
endpoint_service_name: typing.Optional[builtins.str] = None,
|
|
22479
|
+
text_index_name: typing.Optional[builtins.str] = None,
|
|
21906
22480
|
) -> None:
|
|
21907
22481
|
'''Contains details about the storage configuration of the knowledge base in MongoDB Atlas.
|
|
21908
22482
|
|
|
@@ -21913,6 +22487,7 @@ class CfnKnowledgeBase(
|
|
|
21913
22487
|
:param field_mapping: Contains the names of the fields to which to map information about the vector store.
|
|
21914
22488
|
:param vector_index_name: The name of the MongoDB Atlas vector search index.
|
|
21915
22489
|
:param endpoint_service_name: The name of the VPC endpoint service in your account that is connected to your MongoDB Atlas cluster.
|
|
22490
|
+
:param text_index_name: Name of a MongoDB Atlas text index.
|
|
21916
22491
|
|
|
21917
22492
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasconfiguration.html
|
|
21918
22493
|
:exampleMetadata: fixture=_generated
|
|
@@ -21936,7 +22511,8 @@ class CfnKnowledgeBase(
|
|
|
21936
22511
|
vector_index_name="vectorIndexName",
|
|
21937
22512
|
|
|
21938
22513
|
# the properties below are optional
|
|
21939
|
-
endpoint_service_name="endpointServiceName"
|
|
22514
|
+
endpoint_service_name="endpointServiceName",
|
|
22515
|
+
text_index_name="textIndexName"
|
|
21940
22516
|
)
|
|
21941
22517
|
'''
|
|
21942
22518
|
if __debug__:
|
|
@@ -21948,6 +22524,7 @@ class CfnKnowledgeBase(
|
|
|
21948
22524
|
check_type(argname="argument field_mapping", value=field_mapping, expected_type=type_hints["field_mapping"])
|
|
21949
22525
|
check_type(argname="argument vector_index_name", value=vector_index_name, expected_type=type_hints["vector_index_name"])
|
|
21950
22526
|
check_type(argname="argument endpoint_service_name", value=endpoint_service_name, expected_type=type_hints["endpoint_service_name"])
|
|
22527
|
+
check_type(argname="argument text_index_name", value=text_index_name, expected_type=type_hints["text_index_name"])
|
|
21951
22528
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
21952
22529
|
"collection_name": collection_name,
|
|
21953
22530
|
"credentials_secret_arn": credentials_secret_arn,
|
|
@@ -21958,6 +22535,8 @@ class CfnKnowledgeBase(
|
|
|
21958
22535
|
}
|
|
21959
22536
|
if endpoint_service_name is not None:
|
|
21960
22537
|
self._values["endpoint_service_name"] = endpoint_service_name
|
|
22538
|
+
if text_index_name is not None:
|
|
22539
|
+
self._values["text_index_name"] = text_index_name
|
|
21961
22540
|
|
|
21962
22541
|
@builtins.property
|
|
21963
22542
|
def collection_name(self) -> builtins.str:
|
|
@@ -22030,6 +22609,15 @@ class CfnKnowledgeBase(
|
|
|
22030
22609
|
result = self._values.get("endpoint_service_name")
|
|
22031
22610
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
22032
22611
|
|
|
22612
|
+
@builtins.property
|
|
22613
|
+
def text_index_name(self) -> typing.Optional[builtins.str]:
|
|
22614
|
+
'''Name of a MongoDB Atlas text index.
|
|
22615
|
+
|
|
22616
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasconfiguration.html#cfn-bedrock-knowledgebase-mongodbatlasconfiguration-textindexname
|
|
22617
|
+
'''
|
|
22618
|
+
result = self._values.get("text_index_name")
|
|
22619
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
22620
|
+
|
|
22033
22621
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
22034
22622
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
22035
22623
|
|
|
@@ -22284,6 +22872,212 @@ class CfnKnowledgeBase(
|
|
|
22284
22872
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
22285
22873
|
)
|
|
22286
22874
|
|
|
22875
|
+
@jsii.data_type(
|
|
22876
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty",
|
|
22877
|
+
jsii_struct_bases=[],
|
|
22878
|
+
name_mapping={
|
|
22879
|
+
"domain_arn": "domainArn",
|
|
22880
|
+
"domain_endpoint": "domainEndpoint",
|
|
22881
|
+
"field_mapping": "fieldMapping",
|
|
22882
|
+
"vector_index_name": "vectorIndexName",
|
|
22883
|
+
},
|
|
22884
|
+
)
|
|
22885
|
+
class OpenSearchManagedClusterConfigurationProperty:
|
|
22886
|
+
def __init__(
|
|
22887
|
+
self,
|
|
22888
|
+
*,
|
|
22889
|
+
domain_arn: builtins.str,
|
|
22890
|
+
domain_endpoint: builtins.str,
|
|
22891
|
+
field_mapping: typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.OpenSearchManagedClusterFieldMappingProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
22892
|
+
vector_index_name: builtins.str,
|
|
22893
|
+
) -> None:
|
|
22894
|
+
'''Contains details about the Managed Cluster configuration of the knowledge base in Amazon OpenSearch Service.
|
|
22895
|
+
|
|
22896
|
+
For more information, see `Create a vector index in OpenSearch Managed Cluster <https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-osm.html>`_ .
|
|
22897
|
+
|
|
22898
|
+
:param domain_arn: The Amazon Resource Name (ARN) of the OpenSearch domain.
|
|
22899
|
+
:param domain_endpoint: The endpoint URL the OpenSearch domain.
|
|
22900
|
+
:param field_mapping: Contains the names of the fields to which to map information about the vector store.
|
|
22901
|
+
:param vector_index_name: The name of the vector store.
|
|
22902
|
+
|
|
22903
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchmanagedclusterconfiguration.html
|
|
22904
|
+
:exampleMetadata: fixture=_generated
|
|
22905
|
+
|
|
22906
|
+
Example::
|
|
22907
|
+
|
|
22908
|
+
# The code below shows an example of how to instantiate this type.
|
|
22909
|
+
# The values are placeholders you should change.
|
|
22910
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
22911
|
+
|
|
22912
|
+
open_search_managed_cluster_configuration_property = bedrock.CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty(
|
|
22913
|
+
domain_arn="domainArn",
|
|
22914
|
+
domain_endpoint="domainEndpoint",
|
|
22915
|
+
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchManagedClusterFieldMappingProperty(
|
|
22916
|
+
metadata_field="metadataField",
|
|
22917
|
+
text_field="textField",
|
|
22918
|
+
vector_field="vectorField"
|
|
22919
|
+
),
|
|
22920
|
+
vector_index_name="vectorIndexName"
|
|
22921
|
+
)
|
|
22922
|
+
'''
|
|
22923
|
+
if __debug__:
|
|
22924
|
+
type_hints = typing.get_type_hints(_typecheckingstub__77ab2dae3099f1c889647634c63a030007003a0498f422d8e929fff3bf4b4f5f)
|
|
22925
|
+
check_type(argname="argument domain_arn", value=domain_arn, expected_type=type_hints["domain_arn"])
|
|
22926
|
+
check_type(argname="argument domain_endpoint", value=domain_endpoint, expected_type=type_hints["domain_endpoint"])
|
|
22927
|
+
check_type(argname="argument field_mapping", value=field_mapping, expected_type=type_hints["field_mapping"])
|
|
22928
|
+
check_type(argname="argument vector_index_name", value=vector_index_name, expected_type=type_hints["vector_index_name"])
|
|
22929
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
22930
|
+
"domain_arn": domain_arn,
|
|
22931
|
+
"domain_endpoint": domain_endpoint,
|
|
22932
|
+
"field_mapping": field_mapping,
|
|
22933
|
+
"vector_index_name": vector_index_name,
|
|
22934
|
+
}
|
|
22935
|
+
|
|
22936
|
+
@builtins.property
|
|
22937
|
+
def domain_arn(self) -> builtins.str:
|
|
22938
|
+
'''The Amazon Resource Name (ARN) of the OpenSearch domain.
|
|
22939
|
+
|
|
22940
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchmanagedclusterconfiguration.html#cfn-bedrock-knowledgebase-opensearchmanagedclusterconfiguration-domainarn
|
|
22941
|
+
'''
|
|
22942
|
+
result = self._values.get("domain_arn")
|
|
22943
|
+
assert result is not None, "Required property 'domain_arn' is missing"
|
|
22944
|
+
return typing.cast(builtins.str, result)
|
|
22945
|
+
|
|
22946
|
+
@builtins.property
|
|
22947
|
+
def domain_endpoint(self) -> builtins.str:
|
|
22948
|
+
'''The endpoint URL the OpenSearch domain.
|
|
22949
|
+
|
|
22950
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchmanagedclusterconfiguration.html#cfn-bedrock-knowledgebase-opensearchmanagedclusterconfiguration-domainendpoint
|
|
22951
|
+
'''
|
|
22952
|
+
result = self._values.get("domain_endpoint")
|
|
22953
|
+
assert result is not None, "Required property 'domain_endpoint' is missing"
|
|
22954
|
+
return typing.cast(builtins.str, result)
|
|
22955
|
+
|
|
22956
|
+
@builtins.property
|
|
22957
|
+
def field_mapping(
|
|
22958
|
+
self,
|
|
22959
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.OpenSearchManagedClusterFieldMappingProperty"]:
|
|
22960
|
+
'''Contains the names of the fields to which to map information about the vector store.
|
|
22961
|
+
|
|
22962
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchmanagedclusterconfiguration.html#cfn-bedrock-knowledgebase-opensearchmanagedclusterconfiguration-fieldmapping
|
|
22963
|
+
'''
|
|
22964
|
+
result = self._values.get("field_mapping")
|
|
22965
|
+
assert result is not None, "Required property 'field_mapping' is missing"
|
|
22966
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.OpenSearchManagedClusterFieldMappingProperty"], result)
|
|
22967
|
+
|
|
22968
|
+
@builtins.property
|
|
22969
|
+
def vector_index_name(self) -> builtins.str:
|
|
22970
|
+
'''The name of the vector store.
|
|
22971
|
+
|
|
22972
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchmanagedclusterconfiguration.html#cfn-bedrock-knowledgebase-opensearchmanagedclusterconfiguration-vectorindexname
|
|
22973
|
+
'''
|
|
22974
|
+
result = self._values.get("vector_index_name")
|
|
22975
|
+
assert result is not None, "Required property 'vector_index_name' is missing"
|
|
22976
|
+
return typing.cast(builtins.str, result)
|
|
22977
|
+
|
|
22978
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
22979
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
22980
|
+
|
|
22981
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
22982
|
+
return not (rhs == self)
|
|
22983
|
+
|
|
22984
|
+
def __repr__(self) -> str:
|
|
22985
|
+
return "OpenSearchManagedClusterConfigurationProperty(%s)" % ", ".join(
|
|
22986
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
22987
|
+
)
|
|
22988
|
+
|
|
22989
|
+
@jsii.data_type(
|
|
22990
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.OpenSearchManagedClusterFieldMappingProperty",
|
|
22991
|
+
jsii_struct_bases=[],
|
|
22992
|
+
name_mapping={
|
|
22993
|
+
"metadata_field": "metadataField",
|
|
22994
|
+
"text_field": "textField",
|
|
22995
|
+
"vector_field": "vectorField",
|
|
22996
|
+
},
|
|
22997
|
+
)
|
|
22998
|
+
class OpenSearchManagedClusterFieldMappingProperty:
|
|
22999
|
+
def __init__(
|
|
23000
|
+
self,
|
|
23001
|
+
*,
|
|
23002
|
+
metadata_field: builtins.str,
|
|
23003
|
+
text_field: builtins.str,
|
|
23004
|
+
vector_field: builtins.str,
|
|
23005
|
+
) -> None:
|
|
23006
|
+
'''Contains the names of the fields to which to map information about the vector store.
|
|
23007
|
+
|
|
23008
|
+
:param metadata_field: The name of the field in which Amazon Bedrock stores metadata about the vector store.
|
|
23009
|
+
: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.
|
|
23010
|
+
:param vector_field: The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
|
|
23011
|
+
|
|
23012
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchmanagedclusterfieldmapping.html
|
|
23013
|
+
:exampleMetadata: fixture=_generated
|
|
23014
|
+
|
|
23015
|
+
Example::
|
|
23016
|
+
|
|
23017
|
+
# The code below shows an example of how to instantiate this type.
|
|
23018
|
+
# The values are placeholders you should change.
|
|
23019
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
23020
|
+
|
|
23021
|
+
open_search_managed_cluster_field_mapping_property = bedrock.CfnKnowledgeBase.OpenSearchManagedClusterFieldMappingProperty(
|
|
23022
|
+
metadata_field="metadataField",
|
|
23023
|
+
text_field="textField",
|
|
23024
|
+
vector_field="vectorField"
|
|
23025
|
+
)
|
|
23026
|
+
'''
|
|
23027
|
+
if __debug__:
|
|
23028
|
+
type_hints = typing.get_type_hints(_typecheckingstub__fd4510ecacbaa448fcef8e2957d1a39c4ddd45ead28ad6a622eb470a3dc834b5)
|
|
23029
|
+
check_type(argname="argument metadata_field", value=metadata_field, expected_type=type_hints["metadata_field"])
|
|
23030
|
+
check_type(argname="argument text_field", value=text_field, expected_type=type_hints["text_field"])
|
|
23031
|
+
check_type(argname="argument vector_field", value=vector_field, expected_type=type_hints["vector_field"])
|
|
23032
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
23033
|
+
"metadata_field": metadata_field,
|
|
23034
|
+
"text_field": text_field,
|
|
23035
|
+
"vector_field": vector_field,
|
|
23036
|
+
}
|
|
23037
|
+
|
|
23038
|
+
@builtins.property
|
|
23039
|
+
def metadata_field(self) -> builtins.str:
|
|
23040
|
+
'''The name of the field in which Amazon Bedrock stores metadata about the vector store.
|
|
23041
|
+
|
|
23042
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchmanagedclusterfieldmapping.html#cfn-bedrock-knowledgebase-opensearchmanagedclusterfieldmapping-metadatafield
|
|
23043
|
+
'''
|
|
23044
|
+
result = self._values.get("metadata_field")
|
|
23045
|
+
assert result is not None, "Required property 'metadata_field' is missing"
|
|
23046
|
+
return typing.cast(builtins.str, result)
|
|
23047
|
+
|
|
23048
|
+
@builtins.property
|
|
23049
|
+
def text_field(self) -> builtins.str:
|
|
23050
|
+
'''The name of the field in which Amazon Bedrock stores the raw text from your data.
|
|
23051
|
+
|
|
23052
|
+
The text is split according to the chunking strategy you choose.
|
|
23053
|
+
|
|
23054
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchmanagedclusterfieldmapping.html#cfn-bedrock-knowledgebase-opensearchmanagedclusterfieldmapping-textfield
|
|
23055
|
+
'''
|
|
23056
|
+
result = self._values.get("text_field")
|
|
23057
|
+
assert result is not None, "Required property 'text_field' is missing"
|
|
23058
|
+
return typing.cast(builtins.str, result)
|
|
23059
|
+
|
|
23060
|
+
@builtins.property
|
|
23061
|
+
def vector_field(self) -> builtins.str:
|
|
23062
|
+
'''The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
|
|
23063
|
+
|
|
23064
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-opensearchmanagedclusterfieldmapping.html#cfn-bedrock-knowledgebase-opensearchmanagedclusterfieldmapping-vectorfield
|
|
23065
|
+
'''
|
|
23066
|
+
result = self._values.get("vector_field")
|
|
23067
|
+
assert result is not None, "Required property 'vector_field' is missing"
|
|
23068
|
+
return typing.cast(builtins.str, result)
|
|
23069
|
+
|
|
23070
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
23071
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
23072
|
+
|
|
23073
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
23074
|
+
return not (rhs == self)
|
|
23075
|
+
|
|
23076
|
+
def __repr__(self) -> str:
|
|
23077
|
+
return "OpenSearchManagedClusterFieldMappingProperty(%s)" % ", ".join(
|
|
23078
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
23079
|
+
)
|
|
23080
|
+
|
|
22287
23081
|
@jsii.data_type(
|
|
22288
23082
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty",
|
|
22289
23083
|
jsii_struct_bases=[],
|
|
@@ -23100,7 +23894,10 @@ class CfnKnowledgeBase(
|
|
|
23100
23894
|
metadata_field="metadataField",
|
|
23101
23895
|
primary_key_field="primaryKeyField",
|
|
23102
23896
|
text_field="textField",
|
|
23103
|
-
vector_field="vectorField"
|
|
23897
|
+
vector_field="vectorField",
|
|
23898
|
+
|
|
23899
|
+
# the properties below are optional
|
|
23900
|
+
custom_metadata_field="customMetadataField"
|
|
23104
23901
|
),
|
|
23105
23902
|
resource_arn="resourceArn",
|
|
23106
23903
|
table_name="tableName"
|
|
@@ -23192,6 +23989,7 @@ class CfnKnowledgeBase(
|
|
|
23192
23989
|
"primary_key_field": "primaryKeyField",
|
|
23193
23990
|
"text_field": "textField",
|
|
23194
23991
|
"vector_field": "vectorField",
|
|
23992
|
+
"custom_metadata_field": "customMetadataField",
|
|
23195
23993
|
},
|
|
23196
23994
|
)
|
|
23197
23995
|
class RdsFieldMappingProperty:
|
|
@@ -23202,6 +24000,7 @@ class CfnKnowledgeBase(
|
|
|
23202
24000
|
primary_key_field: builtins.str,
|
|
23203
24001
|
text_field: builtins.str,
|
|
23204
24002
|
vector_field: builtins.str,
|
|
24003
|
+
custom_metadata_field: typing.Optional[builtins.str] = None,
|
|
23205
24004
|
) -> None:
|
|
23206
24005
|
'''Contains the names of the fields to which to map information about the vector store.
|
|
23207
24006
|
|
|
@@ -23209,6 +24008,7 @@ class CfnKnowledgeBase(
|
|
|
23209
24008
|
:param primary_key_field: The name of the field in which Amazon Bedrock stores the ID for each entry.
|
|
23210
24009
|
: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.
|
|
23211
24010
|
:param vector_field: The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
|
|
24011
|
+
:param custom_metadata_field: The name of the field in which Amazon Bedrock stores custom metadata about the vector store.
|
|
23212
24012
|
|
|
23213
24013
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-rdsfieldmapping.html
|
|
23214
24014
|
:exampleMetadata: fixture=_generated
|
|
@@ -23223,7 +24023,10 @@ class CfnKnowledgeBase(
|
|
|
23223
24023
|
metadata_field="metadataField",
|
|
23224
24024
|
primary_key_field="primaryKeyField",
|
|
23225
24025
|
text_field="textField",
|
|
23226
|
-
vector_field="vectorField"
|
|
24026
|
+
vector_field="vectorField",
|
|
24027
|
+
|
|
24028
|
+
# the properties below are optional
|
|
24029
|
+
custom_metadata_field="customMetadataField"
|
|
23227
24030
|
)
|
|
23228
24031
|
'''
|
|
23229
24032
|
if __debug__:
|
|
@@ -23232,12 +24035,15 @@ class CfnKnowledgeBase(
|
|
|
23232
24035
|
check_type(argname="argument primary_key_field", value=primary_key_field, expected_type=type_hints["primary_key_field"])
|
|
23233
24036
|
check_type(argname="argument text_field", value=text_field, expected_type=type_hints["text_field"])
|
|
23234
24037
|
check_type(argname="argument vector_field", value=vector_field, expected_type=type_hints["vector_field"])
|
|
24038
|
+
check_type(argname="argument custom_metadata_field", value=custom_metadata_field, expected_type=type_hints["custom_metadata_field"])
|
|
23235
24039
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
23236
24040
|
"metadata_field": metadata_field,
|
|
23237
24041
|
"primary_key_field": primary_key_field,
|
|
23238
24042
|
"text_field": text_field,
|
|
23239
24043
|
"vector_field": vector_field,
|
|
23240
24044
|
}
|
|
24045
|
+
if custom_metadata_field is not None:
|
|
24046
|
+
self._values["custom_metadata_field"] = custom_metadata_field
|
|
23241
24047
|
|
|
23242
24048
|
@builtins.property
|
|
23243
24049
|
def metadata_field(self) -> builtins.str:
|
|
@@ -23281,6 +24087,15 @@ class CfnKnowledgeBase(
|
|
|
23281
24087
|
assert result is not None, "Required property 'vector_field' is missing"
|
|
23282
24088
|
return typing.cast(builtins.str, result)
|
|
23283
24089
|
|
|
24090
|
+
@builtins.property
|
|
24091
|
+
def custom_metadata_field(self) -> typing.Optional[builtins.str]:
|
|
24092
|
+
'''The name of the field in which Amazon Bedrock stores custom metadata about the vector store.
|
|
24093
|
+
|
|
24094
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-rdsfieldmapping.html#cfn-bedrock-knowledgebase-rdsfieldmapping-custommetadatafield
|
|
24095
|
+
'''
|
|
24096
|
+
result = self._values.get("custom_metadata_field")
|
|
24097
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
24098
|
+
|
|
23284
24099
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
23285
24100
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
23286
24101
|
|
|
@@ -24299,6 +25114,7 @@ class CfnKnowledgeBase(
|
|
|
24299
25114
|
"type": "type",
|
|
24300
25115
|
"mongo_db_atlas_configuration": "mongoDbAtlasConfiguration",
|
|
24301
25116
|
"neptune_analytics_configuration": "neptuneAnalyticsConfiguration",
|
|
25117
|
+
"opensearch_managed_cluster_configuration": "opensearchManagedClusterConfiguration",
|
|
24302
25118
|
"opensearch_serverless_configuration": "opensearchServerlessConfiguration",
|
|
24303
25119
|
"pinecone_configuration": "pineconeConfiguration",
|
|
24304
25120
|
"rds_configuration": "rdsConfiguration",
|
|
@@ -24311,6 +25127,7 @@ class CfnKnowledgeBase(
|
|
|
24311
25127
|
type: builtins.str,
|
|
24312
25128
|
mongo_db_atlas_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.MongoDbAtlasConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24313
25129
|
neptune_analytics_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
25130
|
+
opensearch_managed_cluster_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24314
25131
|
opensearch_serverless_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24315
25132
|
pinecone_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.PineconeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24316
25133
|
rds_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.RdsConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -24320,6 +25137,7 @@ class CfnKnowledgeBase(
|
|
|
24320
25137
|
:param type: The vector store service in which the knowledge base is stored.
|
|
24321
25138
|
:param mongo_db_atlas_configuration: Contains the storage configuration of the knowledge base in MongoDB Atlas.
|
|
24322
25139
|
:param neptune_analytics_configuration: Contains details about the Neptune Analytics configuration of the knowledge base in Amazon Neptune. For more information, see `Create a vector index in Amazon Neptune Analytics. <https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-neptune.html>`_ .
|
|
25140
|
+
:param opensearch_managed_cluster_configuration: Contains details about the storage configuration of the knowledge base in OpenSearch Managed Cluster. For more information, see `Create a vector index in Amazon OpenSearch Service <https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-osm.html>`_ .
|
|
24323
25141
|
:param opensearch_serverless_configuration: Contains the storage configuration of the knowledge base in Amazon OpenSearch Service.
|
|
24324
25142
|
:param pinecone_configuration: Contains the storage configuration of the knowledge base in Pinecone.
|
|
24325
25143
|
: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>`_ .
|
|
@@ -24350,7 +25168,8 @@ class CfnKnowledgeBase(
|
|
|
24350
25168
|
vector_index_name="vectorIndexName",
|
|
24351
25169
|
|
|
24352
25170
|
# the properties below are optional
|
|
24353
|
-
endpoint_service_name="endpointServiceName"
|
|
25171
|
+
endpoint_service_name="endpointServiceName",
|
|
25172
|
+
text_index_name="textIndexName"
|
|
24354
25173
|
),
|
|
24355
25174
|
neptune_analytics_configuration=bedrock.CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty(
|
|
24356
25175
|
field_mapping=bedrock.CfnKnowledgeBase.NeptuneAnalyticsFieldMappingProperty(
|
|
@@ -24359,6 +25178,16 @@ class CfnKnowledgeBase(
|
|
|
24359
25178
|
),
|
|
24360
25179
|
graph_arn="graphArn"
|
|
24361
25180
|
),
|
|
25181
|
+
opensearch_managed_cluster_configuration=bedrock.CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty(
|
|
25182
|
+
domain_arn="domainArn",
|
|
25183
|
+
domain_endpoint="domainEndpoint",
|
|
25184
|
+
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchManagedClusterFieldMappingProperty(
|
|
25185
|
+
metadata_field="metadataField",
|
|
25186
|
+
text_field="textField",
|
|
25187
|
+
vector_field="vectorField"
|
|
25188
|
+
),
|
|
25189
|
+
vector_index_name="vectorIndexName"
|
|
25190
|
+
),
|
|
24362
25191
|
opensearch_serverless_configuration=bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty(
|
|
24363
25192
|
collection_arn="collectionArn",
|
|
24364
25193
|
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty(
|
|
@@ -24386,7 +25215,10 @@ class CfnKnowledgeBase(
|
|
|
24386
25215
|
metadata_field="metadataField",
|
|
24387
25216
|
primary_key_field="primaryKeyField",
|
|
24388
25217
|
text_field="textField",
|
|
24389
|
-
vector_field="vectorField"
|
|
25218
|
+
vector_field="vectorField",
|
|
25219
|
+
|
|
25220
|
+
# the properties below are optional
|
|
25221
|
+
custom_metadata_field="customMetadataField"
|
|
24390
25222
|
),
|
|
24391
25223
|
resource_arn="resourceArn",
|
|
24392
25224
|
table_name="tableName"
|
|
@@ -24398,6 +25230,7 @@ class CfnKnowledgeBase(
|
|
|
24398
25230
|
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
24399
25231
|
check_type(argname="argument mongo_db_atlas_configuration", value=mongo_db_atlas_configuration, expected_type=type_hints["mongo_db_atlas_configuration"])
|
|
24400
25232
|
check_type(argname="argument neptune_analytics_configuration", value=neptune_analytics_configuration, expected_type=type_hints["neptune_analytics_configuration"])
|
|
25233
|
+
check_type(argname="argument opensearch_managed_cluster_configuration", value=opensearch_managed_cluster_configuration, expected_type=type_hints["opensearch_managed_cluster_configuration"])
|
|
24401
25234
|
check_type(argname="argument opensearch_serverless_configuration", value=opensearch_serverless_configuration, expected_type=type_hints["opensearch_serverless_configuration"])
|
|
24402
25235
|
check_type(argname="argument pinecone_configuration", value=pinecone_configuration, expected_type=type_hints["pinecone_configuration"])
|
|
24403
25236
|
check_type(argname="argument rds_configuration", value=rds_configuration, expected_type=type_hints["rds_configuration"])
|
|
@@ -24408,6 +25241,8 @@ class CfnKnowledgeBase(
|
|
|
24408
25241
|
self._values["mongo_db_atlas_configuration"] = mongo_db_atlas_configuration
|
|
24409
25242
|
if neptune_analytics_configuration is not None:
|
|
24410
25243
|
self._values["neptune_analytics_configuration"] = neptune_analytics_configuration
|
|
25244
|
+
if opensearch_managed_cluster_configuration is not None:
|
|
25245
|
+
self._values["opensearch_managed_cluster_configuration"] = opensearch_managed_cluster_configuration
|
|
24411
25246
|
if opensearch_serverless_configuration is not None:
|
|
24412
25247
|
self._values["opensearch_serverless_configuration"] = opensearch_serverless_configuration
|
|
24413
25248
|
if pinecone_configuration is not None:
|
|
@@ -24449,6 +25284,19 @@ class CfnKnowledgeBase(
|
|
|
24449
25284
|
result = self._values.get("neptune_analytics_configuration")
|
|
24450
25285
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty"]], result)
|
|
24451
25286
|
|
|
25287
|
+
@builtins.property
|
|
25288
|
+
def opensearch_managed_cluster_configuration(
|
|
25289
|
+
self,
|
|
25290
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty"]]:
|
|
25291
|
+
'''Contains details about the storage configuration of the knowledge base in OpenSearch Managed Cluster.
|
|
25292
|
+
|
|
25293
|
+
For more information, see `Create a vector index in Amazon OpenSearch Service <https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-osm.html>`_ .
|
|
25294
|
+
|
|
25295
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-storageconfiguration.html#cfn-bedrock-knowledgebase-storageconfiguration-opensearchmanagedclusterconfiguration
|
|
25296
|
+
'''
|
|
25297
|
+
result = self._values.get("opensearch_managed_cluster_configuration")
|
|
25298
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty"]], result)
|
|
25299
|
+
|
|
24452
25300
|
@builtins.property
|
|
24453
25301
|
def opensearch_serverless_configuration(
|
|
24454
25302
|
self,
|
|
@@ -24915,7 +25763,8 @@ class CfnKnowledgeBaseProps:
|
|
|
24915
25763
|
vector_index_name="vectorIndexName",
|
|
24916
25764
|
|
|
24917
25765
|
# the properties below are optional
|
|
24918
|
-
endpoint_service_name="endpointServiceName"
|
|
25766
|
+
endpoint_service_name="endpointServiceName",
|
|
25767
|
+
text_index_name="textIndexName"
|
|
24919
25768
|
),
|
|
24920
25769
|
neptune_analytics_configuration=bedrock.CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty(
|
|
24921
25770
|
field_mapping=bedrock.CfnKnowledgeBase.NeptuneAnalyticsFieldMappingProperty(
|
|
@@ -24924,6 +25773,16 @@ class CfnKnowledgeBaseProps:
|
|
|
24924
25773
|
),
|
|
24925
25774
|
graph_arn="graphArn"
|
|
24926
25775
|
),
|
|
25776
|
+
opensearch_managed_cluster_configuration=bedrock.CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty(
|
|
25777
|
+
domain_arn="domainArn",
|
|
25778
|
+
domain_endpoint="domainEndpoint",
|
|
25779
|
+
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchManagedClusterFieldMappingProperty(
|
|
25780
|
+
metadata_field="metadataField",
|
|
25781
|
+
text_field="textField",
|
|
25782
|
+
vector_field="vectorField"
|
|
25783
|
+
),
|
|
25784
|
+
vector_index_name="vectorIndexName"
|
|
25785
|
+
),
|
|
24927
25786
|
opensearch_serverless_configuration=bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty(
|
|
24928
25787
|
collection_arn="collectionArn",
|
|
24929
25788
|
field_mapping=bedrock.CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty(
|
|
@@ -24951,7 +25810,10 @@ class CfnKnowledgeBaseProps:
|
|
|
24951
25810
|
metadata_field="metadataField",
|
|
24952
25811
|
primary_key_field="primaryKeyField",
|
|
24953
25812
|
text_field="textField",
|
|
24954
|
-
vector_field="vectorField"
|
|
25813
|
+
vector_field="vectorField",
|
|
25814
|
+
|
|
25815
|
+
# the properties below are optional
|
|
25816
|
+
custom_metadata_field="customMetadataField"
|
|
24955
25817
|
),
|
|
24956
25818
|
resource_arn="resourceArn",
|
|
24957
25819
|
table_name="tableName"
|
|
@@ -29971,6 +30833,12 @@ class FoundationModelIdentifier(
|
|
|
29971
30833
|
'''Base model "amazon.nova-reel-v1:1".'''
|
|
29972
30834
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AMAZON_NOVA_REEL_V1_1"))
|
|
29973
30835
|
|
|
30836
|
+
@jsii.python.classproperty
|
|
30837
|
+
@jsii.member(jsii_name="AMAZON_NOVA_SONIC_V1_0")
|
|
30838
|
+
def AMAZON_NOVA_SONIC_V1_0(cls) -> "FoundationModelIdentifier":
|
|
30839
|
+
'''Base model "amazon.nova-sonic-v1:0".'''
|
|
30840
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AMAZON_NOVA_SONIC_V1_0"))
|
|
30841
|
+
|
|
29974
30842
|
@jsii.python.classproperty
|
|
29975
30843
|
@jsii.member(jsii_name="AMAZON_RERANK_V1")
|
|
29976
30844
|
def AMAZON_RERANK_V1(cls) -> "FoundationModelIdentifier":
|
|
@@ -30578,6 +31446,12 @@ class FoundationModelIdentifier(
|
|
|
30578
31446
|
'''Base model "mistral.mixtral-8x7b-instruct-v0:1".'''
|
|
30579
31447
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "MISTRAL_MIXTRAL_8X7B_INSTRUCT_V0_1"))
|
|
30580
31448
|
|
|
31449
|
+
@jsii.python.classproperty
|
|
31450
|
+
@jsii.member(jsii_name="MISTRAL_PIXTRAL_LARGE_2502_V1_0")
|
|
31451
|
+
def MISTRAL_PIXTRAL_LARGE_2502_V1_0(cls) -> "FoundationModelIdentifier":
|
|
31452
|
+
'''Base model "mistral.pixtral-large-2502-v1:0".'''
|
|
31453
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "MISTRAL_PIXTRAL_LARGE_2502_V1_0"))
|
|
31454
|
+
|
|
30581
31455
|
@jsii.python.classproperty
|
|
30582
31456
|
@jsii.member(jsii_name="MISTRAL_SMALL_V0_1")
|
|
30583
31457
|
def MISTRAL_SMALL_V0_1(cls) -> "FoundationModelIdentifier":
|
|
@@ -33006,7 +33880,11 @@ def _typecheckingstub__e931f7f6b53869d60aab0ecda0e56f276982aaf3a1ee755be3434f26d
|
|
|
33006
33880
|
input_strength: builtins.str,
|
|
33007
33881
|
output_strength: builtins.str,
|
|
33008
33882
|
type: builtins.str,
|
|
33883
|
+
input_action: typing.Optional[builtins.str] = None,
|
|
33884
|
+
input_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
33009
33885
|
input_modalities: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
33886
|
+
output_action: typing.Optional[builtins.str] = None,
|
|
33887
|
+
output_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
33010
33888
|
output_modalities: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
33011
33889
|
) -> None:
|
|
33012
33890
|
"""Type checking stubs"""
|
|
@@ -33023,6 +33901,8 @@ def _typecheckingstub__7abffe970440d23a158f6e9ee12d25267eea84e0dde20b28718ce3f67
|
|
|
33023
33901
|
*,
|
|
33024
33902
|
threshold: jsii.Number,
|
|
33025
33903
|
type: builtins.str,
|
|
33904
|
+
action: typing.Optional[builtins.str] = None,
|
|
33905
|
+
enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
33026
33906
|
) -> None:
|
|
33027
33907
|
"""Type checking stubs"""
|
|
33028
33908
|
pass
|
|
@@ -33037,6 +33917,10 @@ def _typecheckingstub__435d1e3a7256d29079fd26306b6743fafa097d90223f38213c35ad0ef
|
|
|
33037
33917
|
def _typecheckingstub__a4bf7d4d57eaea6d7c62d6852c2666ebfc7a95d0b72269c42fb757f13cdcece6(
|
|
33038
33918
|
*,
|
|
33039
33919
|
type: builtins.str,
|
|
33920
|
+
input_action: typing.Optional[builtins.str] = None,
|
|
33921
|
+
input_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
33922
|
+
output_action: typing.Optional[builtins.str] = None,
|
|
33923
|
+
output_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
33040
33924
|
) -> None:
|
|
33041
33925
|
"""Type checking stubs"""
|
|
33042
33926
|
pass
|
|
@@ -33045,6 +33929,10 @@ def _typecheckingstub__b1b637cd24a7601fa9e29e9667a11a4859f00240df5f6c858a1c38c3b
|
|
|
33045
33929
|
*,
|
|
33046
33930
|
action: builtins.str,
|
|
33047
33931
|
type: builtins.str,
|
|
33932
|
+
input_action: typing.Optional[builtins.str] = None,
|
|
33933
|
+
input_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
33934
|
+
output_action: typing.Optional[builtins.str] = None,
|
|
33935
|
+
output_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
33048
33936
|
) -> None:
|
|
33049
33937
|
"""Type checking stubs"""
|
|
33050
33938
|
pass
|
|
@@ -33055,6 +33943,10 @@ def _typecheckingstub__6b89e42a3611474b89e78273413fafd42e2ceb034d2f5fa3e3c122fbd
|
|
|
33055
33943
|
name: builtins.str,
|
|
33056
33944
|
pattern: builtins.str,
|
|
33057
33945
|
description: typing.Optional[builtins.str] = None,
|
|
33946
|
+
input_action: typing.Optional[builtins.str] = None,
|
|
33947
|
+
input_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
33948
|
+
output_action: typing.Optional[builtins.str] = None,
|
|
33949
|
+
output_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
33058
33950
|
) -> None:
|
|
33059
33951
|
"""Type checking stubs"""
|
|
33060
33952
|
pass
|
|
@@ -33073,6 +33965,10 @@ def _typecheckingstub__55baba87f7434d59d4b6be04489cbfbd90b857b82944e9437475de8bd
|
|
|
33073
33965
|
name: builtins.str,
|
|
33074
33966
|
type: builtins.str,
|
|
33075
33967
|
examples: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
33968
|
+
input_action: typing.Optional[builtins.str] = None,
|
|
33969
|
+
input_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
33970
|
+
output_action: typing.Optional[builtins.str] = None,
|
|
33971
|
+
output_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
33076
33972
|
) -> None:
|
|
33077
33973
|
"""Type checking stubs"""
|
|
33078
33974
|
pass
|
|
@@ -33087,6 +33983,10 @@ def _typecheckingstub__a601b9bb5110351c09983ddf7f804dd1b1d64d78dffded374d89618a6
|
|
|
33087
33983
|
def _typecheckingstub__8d97ba02e51405985a3642a48511f50ab8ebae582cdd068b6dec0252d49b5497(
|
|
33088
33984
|
*,
|
|
33089
33985
|
text: builtins.str,
|
|
33986
|
+
input_action: typing.Optional[builtins.str] = None,
|
|
33987
|
+
input_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
33988
|
+
output_action: typing.Optional[builtins.str] = None,
|
|
33989
|
+
output_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
33090
33990
|
) -> None:
|
|
33091
33991
|
"""Type checking stubs"""
|
|
33092
33992
|
pass
|
|
@@ -33269,6 +34169,7 @@ def _typecheckingstub__e9aab84c59bbcca474a92e8e14d567a83b0356b2c00acd482f24dc540
|
|
|
33269
34169
|
field_mapping: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.MongoDbAtlasFieldMappingProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
33270
34170
|
vector_index_name: builtins.str,
|
|
33271
34171
|
endpoint_service_name: typing.Optional[builtins.str] = None,
|
|
34172
|
+
text_index_name: typing.Optional[builtins.str] = None,
|
|
33272
34173
|
) -> None:
|
|
33273
34174
|
"""Type checking stubs"""
|
|
33274
34175
|
pass
|
|
@@ -33298,6 +34199,25 @@ def _typecheckingstub__149760cb1c54680bfaffb4cbd878a103bd98758e30835dd86bdc5ae4a
|
|
|
33298
34199
|
"""Type checking stubs"""
|
|
33299
34200
|
pass
|
|
33300
34201
|
|
|
34202
|
+
def _typecheckingstub__77ab2dae3099f1c889647634c63a030007003a0498f422d8e929fff3bf4b4f5f(
|
|
34203
|
+
*,
|
|
34204
|
+
domain_arn: builtins.str,
|
|
34205
|
+
domain_endpoint: builtins.str,
|
|
34206
|
+
field_mapping: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.OpenSearchManagedClusterFieldMappingProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
34207
|
+
vector_index_name: builtins.str,
|
|
34208
|
+
) -> None:
|
|
34209
|
+
"""Type checking stubs"""
|
|
34210
|
+
pass
|
|
34211
|
+
|
|
34212
|
+
def _typecheckingstub__fd4510ecacbaa448fcef8e2957d1a39c4ddd45ead28ad6a622eb470a3dc834b5(
|
|
34213
|
+
*,
|
|
34214
|
+
metadata_field: builtins.str,
|
|
34215
|
+
text_field: builtins.str,
|
|
34216
|
+
vector_field: builtins.str,
|
|
34217
|
+
) -> None:
|
|
34218
|
+
"""Type checking stubs"""
|
|
34219
|
+
pass
|
|
34220
|
+
|
|
33301
34221
|
def _typecheckingstub__ebf20de0b58d579ecbd2aeccf094bb6c29ae3627a2b4628485b0235e33626d24(
|
|
33302
34222
|
*,
|
|
33303
34223
|
collection_arn: builtins.str,
|
|
@@ -33386,6 +34306,7 @@ def _typecheckingstub__0060deafed28d2f4c1690bf8921de0b9aca79fe88ac4c5ca53f29b4ef
|
|
|
33386
34306
|
primary_key_field: builtins.str,
|
|
33387
34307
|
text_field: builtins.str,
|
|
33388
34308
|
vector_field: builtins.str,
|
|
34309
|
+
custom_metadata_field: typing.Optional[builtins.str] = None,
|
|
33389
34310
|
) -> None:
|
|
33390
34311
|
"""Type checking stubs"""
|
|
33391
34312
|
pass
|
|
@@ -33484,6 +34405,7 @@ def _typecheckingstub__fa4cccae88d65689f5f3cabcb8393a082af16eb90d7613332a03867c3
|
|
|
33484
34405
|
type: builtins.str,
|
|
33485
34406
|
mongo_db_atlas_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.MongoDbAtlasConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
33486
34407
|
neptune_analytics_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
34408
|
+
opensearch_managed_cluster_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
33487
34409
|
opensearch_serverless_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
33488
34410
|
pinecone_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.PineconeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
33489
34411
|
rds_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.RdsConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|