aws-cdk-lib 2.190.0__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.190.0.jsii.tgz → aws-cdk-lib@2.191.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +18 -1
- aws_cdk/aws_aps/__init__.py +383 -2
- aws_cdk/aws_batch/__init__.py +40 -18
- aws_cdk/aws_bedrock/__init__.py +676 -41
- aws_cdk/aws_codebuild/__init__.py +48 -0
- aws_cdk/aws_datazone/__init__.py +23 -1
- aws_cdk/aws_events/__init__.py +39 -0
- aws_cdk/aws_launchwizard/__init__.py +49 -49
- aws_cdk/aws_neptune/__init__.py +0 -16
- aws_cdk/aws_rds/__init__.py +36 -0
- aws_cdk/aws_s3tables/__init__.py +142 -1
- aws_cdk/aws_ses/__init__.py +643 -18
- {aws_cdk_lib-2.190.0.dist-info → aws_cdk_lib-2.191.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.190.0.dist-info → aws_cdk_lib-2.191.0.dist-info}/RECORD +20 -20
- {aws_cdk_lib-2.190.0.dist-info → aws_cdk_lib-2.191.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.190.0.dist-info → aws_cdk_lib-2.191.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.190.0.dist-info → aws_cdk_lib-2.191.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.190.0.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(
|
|
@@ -21189,7 +21748,10 @@ class CfnKnowledgeBase(
|
|
|
21189
21748
|
metadata_field="metadataField",
|
|
21190
21749
|
primary_key_field="primaryKeyField",
|
|
21191
21750
|
text_field="textField",
|
|
21192
|
-
vector_field="vectorField"
|
|
21751
|
+
vector_field="vectorField",
|
|
21752
|
+
|
|
21753
|
+
# the properties below are optional
|
|
21754
|
+
custom_metadata_field="customMetadataField"
|
|
21193
21755
|
),
|
|
21194
21756
|
resource_arn="resourceArn",
|
|
21195
21757
|
table_name="tableName"
|
|
@@ -21900,6 +22462,7 @@ class CfnKnowledgeBase(
|
|
|
21900
22462
|
"field_mapping": "fieldMapping",
|
|
21901
22463
|
"vector_index_name": "vectorIndexName",
|
|
21902
22464
|
"endpoint_service_name": "endpointServiceName",
|
|
22465
|
+
"text_index_name": "textIndexName",
|
|
21903
22466
|
},
|
|
21904
22467
|
)
|
|
21905
22468
|
class MongoDbAtlasConfigurationProperty:
|
|
@@ -21913,6 +22476,7 @@ class CfnKnowledgeBase(
|
|
|
21913
22476
|
field_mapping: typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.MongoDbAtlasFieldMappingProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
21914
22477
|
vector_index_name: builtins.str,
|
|
21915
22478
|
endpoint_service_name: typing.Optional[builtins.str] = None,
|
|
22479
|
+
text_index_name: typing.Optional[builtins.str] = None,
|
|
21916
22480
|
) -> None:
|
|
21917
22481
|
'''Contains details about the storage configuration of the knowledge base in MongoDB Atlas.
|
|
21918
22482
|
|
|
@@ -21923,6 +22487,7 @@ class CfnKnowledgeBase(
|
|
|
21923
22487
|
:param field_mapping: Contains the names of the fields to which to map information about the vector store.
|
|
21924
22488
|
:param vector_index_name: The name of the MongoDB Atlas vector search index.
|
|
21925
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.
|
|
21926
22491
|
|
|
21927
22492
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasconfiguration.html
|
|
21928
22493
|
:exampleMetadata: fixture=_generated
|
|
@@ -21946,7 +22511,8 @@ class CfnKnowledgeBase(
|
|
|
21946
22511
|
vector_index_name="vectorIndexName",
|
|
21947
22512
|
|
|
21948
22513
|
# the properties below are optional
|
|
21949
|
-
endpoint_service_name="endpointServiceName"
|
|
22514
|
+
endpoint_service_name="endpointServiceName",
|
|
22515
|
+
text_index_name="textIndexName"
|
|
21950
22516
|
)
|
|
21951
22517
|
'''
|
|
21952
22518
|
if __debug__:
|
|
@@ -21958,6 +22524,7 @@ class CfnKnowledgeBase(
|
|
|
21958
22524
|
check_type(argname="argument field_mapping", value=field_mapping, expected_type=type_hints["field_mapping"])
|
|
21959
22525
|
check_type(argname="argument vector_index_name", value=vector_index_name, expected_type=type_hints["vector_index_name"])
|
|
21960
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"])
|
|
21961
22528
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
21962
22529
|
"collection_name": collection_name,
|
|
21963
22530
|
"credentials_secret_arn": credentials_secret_arn,
|
|
@@ -21968,6 +22535,8 @@ class CfnKnowledgeBase(
|
|
|
21968
22535
|
}
|
|
21969
22536
|
if endpoint_service_name is not None:
|
|
21970
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
|
|
21971
22540
|
|
|
21972
22541
|
@builtins.property
|
|
21973
22542
|
def collection_name(self) -> builtins.str:
|
|
@@ -22040,6 +22609,15 @@ class CfnKnowledgeBase(
|
|
|
22040
22609
|
result = self._values.get("endpoint_service_name")
|
|
22041
22610
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
22042
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
|
+
|
|
22043
22621
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
22044
22622
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
22045
22623
|
|
|
@@ -23316,7 +23894,10 @@ class CfnKnowledgeBase(
|
|
|
23316
23894
|
metadata_field="metadataField",
|
|
23317
23895
|
primary_key_field="primaryKeyField",
|
|
23318
23896
|
text_field="textField",
|
|
23319
|
-
vector_field="vectorField"
|
|
23897
|
+
vector_field="vectorField",
|
|
23898
|
+
|
|
23899
|
+
# the properties below are optional
|
|
23900
|
+
custom_metadata_field="customMetadataField"
|
|
23320
23901
|
),
|
|
23321
23902
|
resource_arn="resourceArn",
|
|
23322
23903
|
table_name="tableName"
|
|
@@ -23408,6 +23989,7 @@ class CfnKnowledgeBase(
|
|
|
23408
23989
|
"primary_key_field": "primaryKeyField",
|
|
23409
23990
|
"text_field": "textField",
|
|
23410
23991
|
"vector_field": "vectorField",
|
|
23992
|
+
"custom_metadata_field": "customMetadataField",
|
|
23411
23993
|
},
|
|
23412
23994
|
)
|
|
23413
23995
|
class RdsFieldMappingProperty:
|
|
@@ -23418,6 +24000,7 @@ class CfnKnowledgeBase(
|
|
|
23418
24000
|
primary_key_field: builtins.str,
|
|
23419
24001
|
text_field: builtins.str,
|
|
23420
24002
|
vector_field: builtins.str,
|
|
24003
|
+
custom_metadata_field: typing.Optional[builtins.str] = None,
|
|
23421
24004
|
) -> None:
|
|
23422
24005
|
'''Contains the names of the fields to which to map information about the vector store.
|
|
23423
24006
|
|
|
@@ -23425,6 +24008,7 @@ class CfnKnowledgeBase(
|
|
|
23425
24008
|
:param primary_key_field: The name of the field in which Amazon Bedrock stores the ID for each entry.
|
|
23426
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.
|
|
23427
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.
|
|
23428
24012
|
|
|
23429
24013
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-rdsfieldmapping.html
|
|
23430
24014
|
:exampleMetadata: fixture=_generated
|
|
@@ -23439,7 +24023,10 @@ class CfnKnowledgeBase(
|
|
|
23439
24023
|
metadata_field="metadataField",
|
|
23440
24024
|
primary_key_field="primaryKeyField",
|
|
23441
24025
|
text_field="textField",
|
|
23442
|
-
vector_field="vectorField"
|
|
24026
|
+
vector_field="vectorField",
|
|
24027
|
+
|
|
24028
|
+
# the properties below are optional
|
|
24029
|
+
custom_metadata_field="customMetadataField"
|
|
23443
24030
|
)
|
|
23444
24031
|
'''
|
|
23445
24032
|
if __debug__:
|
|
@@ -23448,12 +24035,15 @@ class CfnKnowledgeBase(
|
|
|
23448
24035
|
check_type(argname="argument primary_key_field", value=primary_key_field, expected_type=type_hints["primary_key_field"])
|
|
23449
24036
|
check_type(argname="argument text_field", value=text_field, expected_type=type_hints["text_field"])
|
|
23450
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"])
|
|
23451
24039
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
23452
24040
|
"metadata_field": metadata_field,
|
|
23453
24041
|
"primary_key_field": primary_key_field,
|
|
23454
24042
|
"text_field": text_field,
|
|
23455
24043
|
"vector_field": vector_field,
|
|
23456
24044
|
}
|
|
24045
|
+
if custom_metadata_field is not None:
|
|
24046
|
+
self._values["custom_metadata_field"] = custom_metadata_field
|
|
23457
24047
|
|
|
23458
24048
|
@builtins.property
|
|
23459
24049
|
def metadata_field(self) -> builtins.str:
|
|
@@ -23497,6 +24087,15 @@ class CfnKnowledgeBase(
|
|
|
23497
24087
|
assert result is not None, "Required property 'vector_field' is missing"
|
|
23498
24088
|
return typing.cast(builtins.str, result)
|
|
23499
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
|
+
|
|
23500
24099
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
23501
24100
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
23502
24101
|
|
|
@@ -24569,7 +25168,8 @@ class CfnKnowledgeBase(
|
|
|
24569
25168
|
vector_index_name="vectorIndexName",
|
|
24570
25169
|
|
|
24571
25170
|
# the properties below are optional
|
|
24572
|
-
endpoint_service_name="endpointServiceName"
|
|
25171
|
+
endpoint_service_name="endpointServiceName",
|
|
25172
|
+
text_index_name="textIndexName"
|
|
24573
25173
|
),
|
|
24574
25174
|
neptune_analytics_configuration=bedrock.CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty(
|
|
24575
25175
|
field_mapping=bedrock.CfnKnowledgeBase.NeptuneAnalyticsFieldMappingProperty(
|
|
@@ -24615,7 +25215,10 @@ class CfnKnowledgeBase(
|
|
|
24615
25215
|
metadata_field="metadataField",
|
|
24616
25216
|
primary_key_field="primaryKeyField",
|
|
24617
25217
|
text_field="textField",
|
|
24618
|
-
vector_field="vectorField"
|
|
25218
|
+
vector_field="vectorField",
|
|
25219
|
+
|
|
25220
|
+
# the properties below are optional
|
|
25221
|
+
custom_metadata_field="customMetadataField"
|
|
24619
25222
|
),
|
|
24620
25223
|
resource_arn="resourceArn",
|
|
24621
25224
|
table_name="tableName"
|
|
@@ -25160,7 +25763,8 @@ class CfnKnowledgeBaseProps:
|
|
|
25160
25763
|
vector_index_name="vectorIndexName",
|
|
25161
25764
|
|
|
25162
25765
|
# the properties below are optional
|
|
25163
|
-
endpoint_service_name="endpointServiceName"
|
|
25766
|
+
endpoint_service_name="endpointServiceName",
|
|
25767
|
+
text_index_name="textIndexName"
|
|
25164
25768
|
),
|
|
25165
25769
|
neptune_analytics_configuration=bedrock.CfnKnowledgeBase.NeptuneAnalyticsConfigurationProperty(
|
|
25166
25770
|
field_mapping=bedrock.CfnKnowledgeBase.NeptuneAnalyticsFieldMappingProperty(
|
|
@@ -25206,7 +25810,10 @@ class CfnKnowledgeBaseProps:
|
|
|
25206
25810
|
metadata_field="metadataField",
|
|
25207
25811
|
primary_key_field="primaryKeyField",
|
|
25208
25812
|
text_field="textField",
|
|
25209
|
-
vector_field="vectorField"
|
|
25813
|
+
vector_field="vectorField",
|
|
25814
|
+
|
|
25815
|
+
# the properties below are optional
|
|
25816
|
+
custom_metadata_field="customMetadataField"
|
|
25210
25817
|
),
|
|
25211
25818
|
resource_arn="resourceArn",
|
|
25212
25819
|
table_name="tableName"
|
|
@@ -33273,7 +33880,11 @@ def _typecheckingstub__e931f7f6b53869d60aab0ecda0e56f276982aaf3a1ee755be3434f26d
|
|
|
33273
33880
|
input_strength: builtins.str,
|
|
33274
33881
|
output_strength: builtins.str,
|
|
33275
33882
|
type: builtins.str,
|
|
33883
|
+
input_action: typing.Optional[builtins.str] = None,
|
|
33884
|
+
input_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
33276
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,
|
|
33277
33888
|
output_modalities: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
33278
33889
|
) -> None:
|
|
33279
33890
|
"""Type checking stubs"""
|
|
@@ -33290,6 +33901,8 @@ def _typecheckingstub__7abffe970440d23a158f6e9ee12d25267eea84e0dde20b28718ce3f67
|
|
|
33290
33901
|
*,
|
|
33291
33902
|
threshold: jsii.Number,
|
|
33292
33903
|
type: builtins.str,
|
|
33904
|
+
action: typing.Optional[builtins.str] = None,
|
|
33905
|
+
enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
33293
33906
|
) -> None:
|
|
33294
33907
|
"""Type checking stubs"""
|
|
33295
33908
|
pass
|
|
@@ -33304,6 +33917,10 @@ def _typecheckingstub__435d1e3a7256d29079fd26306b6743fafa097d90223f38213c35ad0ef
|
|
|
33304
33917
|
def _typecheckingstub__a4bf7d4d57eaea6d7c62d6852c2666ebfc7a95d0b72269c42fb757f13cdcece6(
|
|
33305
33918
|
*,
|
|
33306
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,
|
|
33307
33924
|
) -> None:
|
|
33308
33925
|
"""Type checking stubs"""
|
|
33309
33926
|
pass
|
|
@@ -33312,6 +33929,10 @@ def _typecheckingstub__b1b637cd24a7601fa9e29e9667a11a4859f00240df5f6c858a1c38c3b
|
|
|
33312
33929
|
*,
|
|
33313
33930
|
action: builtins.str,
|
|
33314
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,
|
|
33315
33936
|
) -> None:
|
|
33316
33937
|
"""Type checking stubs"""
|
|
33317
33938
|
pass
|
|
@@ -33322,6 +33943,10 @@ def _typecheckingstub__6b89e42a3611474b89e78273413fafd42e2ceb034d2f5fa3e3c122fbd
|
|
|
33322
33943
|
name: builtins.str,
|
|
33323
33944
|
pattern: builtins.str,
|
|
33324
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,
|
|
33325
33950
|
) -> None:
|
|
33326
33951
|
"""Type checking stubs"""
|
|
33327
33952
|
pass
|
|
@@ -33340,6 +33965,10 @@ def _typecheckingstub__55baba87f7434d59d4b6be04489cbfbd90b857b82944e9437475de8bd
|
|
|
33340
33965
|
name: builtins.str,
|
|
33341
33966
|
type: builtins.str,
|
|
33342
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,
|
|
33343
33972
|
) -> None:
|
|
33344
33973
|
"""Type checking stubs"""
|
|
33345
33974
|
pass
|
|
@@ -33354,6 +33983,10 @@ def _typecheckingstub__a601b9bb5110351c09983ddf7f804dd1b1d64d78dffded374d89618a6
|
|
|
33354
33983
|
def _typecheckingstub__8d97ba02e51405985a3642a48511f50ab8ebae582cdd068b6dec0252d49b5497(
|
|
33355
33984
|
*,
|
|
33356
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,
|
|
33357
33990
|
) -> None:
|
|
33358
33991
|
"""Type checking stubs"""
|
|
33359
33992
|
pass
|
|
@@ -33536,6 +34169,7 @@ def _typecheckingstub__e9aab84c59bbcca474a92e8e14d567a83b0356b2c00acd482f24dc540
|
|
|
33536
34169
|
field_mapping: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.MongoDbAtlasFieldMappingProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
33537
34170
|
vector_index_name: builtins.str,
|
|
33538
34171
|
endpoint_service_name: typing.Optional[builtins.str] = None,
|
|
34172
|
+
text_index_name: typing.Optional[builtins.str] = None,
|
|
33539
34173
|
) -> None:
|
|
33540
34174
|
"""Type checking stubs"""
|
|
33541
34175
|
pass
|
|
@@ -33672,6 +34306,7 @@ def _typecheckingstub__0060deafed28d2f4c1690bf8921de0b9aca79fe88ac4c5ca53f29b4ef
|
|
|
33672
34306
|
primary_key_field: builtins.str,
|
|
33673
34307
|
text_field: builtins.str,
|
|
33674
34308
|
vector_field: builtins.str,
|
|
34309
|
+
custom_metadata_field: typing.Optional[builtins.str] = None,
|
|
33675
34310
|
) -> None:
|
|
33676
34311
|
"""Type checking stubs"""
|
|
33677
34312
|
pass
|