aws-cdk-lib 2.215.0__py3-none-any.whl → 2.217.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +90 -58
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.215.0.jsii.tgz → aws-cdk-lib@2.217.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +1 -1
- aws_cdk/aws_amplify/__init__.py +8 -8
- aws_cdk/aws_apigateway/__init__.py +26 -6
- aws_cdk/aws_apigatewayv2/__init__.py +32 -21
- aws_cdk/aws_appmesh/__init__.py +12 -12
- aws_cdk/aws_appstream/__init__.py +14 -4
- aws_cdk/aws_appsync/__init__.py +3 -3
- aws_cdk/aws_aps/__init__.py +459 -0
- aws_cdk/aws_batch/__init__.py +6 -2
- aws_cdk/aws_bedrock/__init__.py +162 -0
- aws_cdk/aws_bedrockagentcore/__init__.py +3178 -0
- aws_cdk/aws_certificatemanager/__init__.py +9 -10
- aws_cdk/aws_cleanrooms/__init__.py +163 -0
- aws_cdk/aws_cloudformation/__init__.py +14 -14
- aws_cdk/aws_cloudfront/__init__.py +91 -10
- aws_cdk/aws_cloudfront_origins/__init__.py +422 -47
- aws_cdk/aws_cognito/__init__.py +2 -2
- aws_cdk/aws_connect/__init__.py +138 -10
- aws_cdk/aws_cur/__init__.py +57 -3
- aws_cdk/aws_datasync/__init__.py +351 -0
- aws_cdk/aws_datazone/__init__.py +675 -2
- aws_cdk/aws_dynamodb/__init__.py +123 -0
- aws_cdk/aws_ec2/__init__.py +55 -10
- aws_cdk/aws_ecr/__init__.py +4 -0
- aws_cdk/aws_ecs/__init__.py +55 -12
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +275 -0
- aws_cdk/aws_elasticsearch/__init__.py +2 -2
- aws_cdk/aws_events/__init__.py +187 -0
- aws_cdk/aws_evs/__init__.py +58 -4
- aws_cdk/aws_gamelift/__init__.py +72 -56
- aws_cdk/aws_iam/__init__.py +1 -1
- aws_cdk/aws_iotcoredeviceadvisor/__init__.py +35 -38
- aws_cdk/aws_iotsitewise/__init__.py +75 -111
- aws_cdk/aws_kinesisanalytics/__init__.py +315 -125
- aws_cdk/aws_kms/__init__.py +10 -2
- aws_cdk/aws_lambda/__init__.py +62 -8
- aws_cdk/aws_medialive/__init__.py +127 -0
- aws_cdk/aws_mediapackage/__init__.py +2 -2
- aws_cdk/aws_networkfirewall/__init__.py +10 -10
- aws_cdk/aws_networkmanager/__init__.py +63 -0
- aws_cdk/aws_odb/__init__.py +2082 -195
- aws_cdk/aws_omics/__init__.py +1414 -171
- aws_cdk/aws_opensearchserverless/__init__.py +164 -21
- aws_cdk/aws_opensearchservice/__init__.py +5 -4
- aws_cdk/aws_pcs/__init__.py +9 -9
- aws_cdk/aws_quicksight/__init__.py +295 -3
- aws_cdk/aws_rds/__init__.py +338 -58
- aws_cdk/aws_route53/__init__.py +5926 -4376
- aws_cdk/aws_sagemaker/__init__.py +251 -1
- aws_cdk/aws_servicecatalog/__init__.py +162 -154
- aws_cdk/aws_smsvoice/__init__.py +5218 -0
- aws_cdk/aws_stepfunctions_tasks/__init__.py +669 -81
- aws_cdk/aws_transfer/__init__.py +13 -12
- aws_cdk/aws_verifiedpermissions/__init__.py +1 -1
- aws_cdk/aws_workspacesinstances/__init__.py +641 -2
- {aws_cdk_lib-2.215.0.dist-info → aws_cdk_lib-2.217.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.215.0.dist-info → aws_cdk_lib-2.217.0.dist-info}/RECORD +64 -62
- {aws_cdk_lib-2.215.0.dist-info → aws_cdk_lib-2.217.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.215.0.dist-info → aws_cdk_lib-2.217.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.215.0.dist-info → aws_cdk_lib-2.217.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.215.0.dist-info → aws_cdk_lib-2.217.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -2880,6 +2880,7 @@ class CfnFlowVersionProps:
|
|
|
2880
2880
|
"blocked_input_messaging": "blockedInputMessaging",
|
|
2881
2881
|
"blocked_outputs_messaging": "blockedOutputsMessaging",
|
|
2882
2882
|
"name": "name",
|
|
2883
|
+
"automated_reasoning_policy_config": "automatedReasoningPolicyConfig",
|
|
2883
2884
|
"content_policy_config": "contentPolicyConfig",
|
|
2884
2885
|
"contextual_grounding_policy_config": "contextualGroundingPolicyConfig",
|
|
2885
2886
|
"cross_region_config": "crossRegionConfig",
|
|
@@ -2898,6 +2899,7 @@ class CfnGuardrailProps:
|
|
|
2898
2899
|
blocked_input_messaging: builtins.str,
|
|
2899
2900
|
blocked_outputs_messaging: builtins.str,
|
|
2900
2901
|
name: builtins.str,
|
|
2902
|
+
automated_reasoning_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.AutomatedReasoningPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2901
2903
|
content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.ContentPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2902
2904
|
contextual_grounding_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.ContextualGroundingPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2903
2905
|
cross_region_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.GuardrailCrossRegionConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -2913,6 +2915,7 @@ class CfnGuardrailProps:
|
|
|
2913
2915
|
:param blocked_input_messaging: The message to return when the guardrail blocks a prompt.
|
|
2914
2916
|
:param blocked_outputs_messaging: The message to return when the guardrail blocks a model response.
|
|
2915
2917
|
:param name: The name of the guardrail.
|
|
2918
|
+
:param automated_reasoning_policy_config: Configuration settings for integrating Automated Reasoning policies with Amazon Bedrock Guardrails.
|
|
2916
2919
|
:param content_policy_config: The content filter policies to configure for the guardrail.
|
|
2917
2920
|
:param contextual_grounding_policy_config: Contextual grounding policy config for a guardrail.
|
|
2918
2921
|
:param cross_region_config: The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination AWS Regions where guardrail inference requests can be automatically routed. Using guardrail profiles helps maintain guardrail performance and reliability when demand increases. For more information, see the `Amazon Bedrock User Guide <https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html>`_ .
|
|
@@ -2950,6 +2953,7 @@ class CfnGuardrailProps:
|
|
|
2950
2953
|
check_type(argname="argument blocked_input_messaging", value=blocked_input_messaging, expected_type=type_hints["blocked_input_messaging"])
|
|
2951
2954
|
check_type(argname="argument blocked_outputs_messaging", value=blocked_outputs_messaging, expected_type=type_hints["blocked_outputs_messaging"])
|
|
2952
2955
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
2956
|
+
check_type(argname="argument automated_reasoning_policy_config", value=automated_reasoning_policy_config, expected_type=type_hints["automated_reasoning_policy_config"])
|
|
2953
2957
|
check_type(argname="argument content_policy_config", value=content_policy_config, expected_type=type_hints["content_policy_config"])
|
|
2954
2958
|
check_type(argname="argument contextual_grounding_policy_config", value=contextual_grounding_policy_config, expected_type=type_hints["contextual_grounding_policy_config"])
|
|
2955
2959
|
check_type(argname="argument cross_region_config", value=cross_region_config, expected_type=type_hints["cross_region_config"])
|
|
@@ -2964,6 +2968,8 @@ class CfnGuardrailProps:
|
|
|
2964
2968
|
"blocked_outputs_messaging": blocked_outputs_messaging,
|
|
2965
2969
|
"name": name,
|
|
2966
2970
|
}
|
|
2971
|
+
if automated_reasoning_policy_config is not None:
|
|
2972
|
+
self._values["automated_reasoning_policy_config"] = automated_reasoning_policy_config
|
|
2967
2973
|
if content_policy_config is not None:
|
|
2968
2974
|
self._values["content_policy_config"] = content_policy_config
|
|
2969
2975
|
if contextual_grounding_policy_config is not None:
|
|
@@ -3013,6 +3019,17 @@ class CfnGuardrailProps:
|
|
|
3013
3019
|
assert result is not None, "Required property 'name' is missing"
|
|
3014
3020
|
return typing.cast(builtins.str, result)
|
|
3015
3021
|
|
|
3022
|
+
@builtins.property
|
|
3023
|
+
def automated_reasoning_policy_config(
|
|
3024
|
+
self,
|
|
3025
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.AutomatedReasoningPolicyConfigProperty"]]:
|
|
3026
|
+
'''Configuration settings for integrating Automated Reasoning policies with Amazon Bedrock Guardrails.
|
|
3027
|
+
|
|
3028
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-automatedreasoningpolicyconfig
|
|
3029
|
+
'''
|
|
3030
|
+
result = self._values.get("automated_reasoning_policy_config")
|
|
3031
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.AutomatedReasoningPolicyConfigProperty"]], result)
|
|
3032
|
+
|
|
3016
3033
|
@builtins.property
|
|
3017
3034
|
def content_policy_config(
|
|
3018
3035
|
self,
|
|
@@ -4940,6 +4957,12 @@ class FoundationModelIdentifier(
|
|
|
4940
4957
|
'''Base model "deepseek.r1-v1:0".'''
|
|
4941
4958
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "DEEP_SEEK_R1_V1_0"))
|
|
4942
4959
|
|
|
4960
|
+
@jsii.python.classproperty
|
|
4961
|
+
@jsii.member(jsii_name="DEEP_SEEK_V3_V1_0")
|
|
4962
|
+
def DEEP_SEEK_V3_V1_0(cls) -> "FoundationModelIdentifier":
|
|
4963
|
+
'''Base model "deepseek.v3-v1:0".'''
|
|
4964
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "DEEP_SEEK_V3_V1_0"))
|
|
4965
|
+
|
|
4943
4966
|
@jsii.python.classproperty
|
|
4944
4967
|
@jsii.member(jsii_name="LUMA_RAY_V2_0")
|
|
4945
4968
|
def LUMA_RAY_V2_0(cls) -> "FoundationModelIdentifier":
|
|
@@ -5166,6 +5189,30 @@ class FoundationModelIdentifier(
|
|
|
5166
5189
|
'''Base model "openai.gpt-oss-20b-1:0".'''
|
|
5167
5190
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "OPENAI_GPT_OSS_20B_1"))
|
|
5168
5191
|
|
|
5192
|
+
@jsii.python.classproperty
|
|
5193
|
+
@jsii.member(jsii_name="QWEN_QWEN3_235B_A22B_2507_V1_0")
|
|
5194
|
+
def QWEN_QWEN3_235_B_A22_B_2507_V1_0(cls) -> "FoundationModelIdentifier":
|
|
5195
|
+
'''Base Model "qwen.qwen3-235b-a22b-2507-v1:0".'''
|
|
5196
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "QWEN_QWEN3_235B_A22B_2507_V1_0"))
|
|
5197
|
+
|
|
5198
|
+
@jsii.python.classproperty
|
|
5199
|
+
@jsii.member(jsii_name="QWEN_QWEN3_32B_V1_0")
|
|
5200
|
+
def QWEN_QWEN3_32_B_V1_0(cls) -> "FoundationModelIdentifier":
|
|
5201
|
+
'''Base Model "qwen.qwen3-32b-v1:0".'''
|
|
5202
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "QWEN_QWEN3_32B_V1_0"))
|
|
5203
|
+
|
|
5204
|
+
@jsii.python.classproperty
|
|
5205
|
+
@jsii.member(jsii_name="QWEN_QWEN3_CODER_30B_A3B_V1_0")
|
|
5206
|
+
def QWEN_QWEN3_CODER_30_B_A3_B_V1_0(cls) -> "FoundationModelIdentifier":
|
|
5207
|
+
'''Base Model "qwen.qwen3-coder-30b-a3b-v1:0".'''
|
|
5208
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "QWEN_QWEN3_CODER_30B_A3B_V1_0"))
|
|
5209
|
+
|
|
5210
|
+
@jsii.python.classproperty
|
|
5211
|
+
@jsii.member(jsii_name="QWEN_QWEN3_CODER_480B_A35B_V1_0")
|
|
5212
|
+
def QWEN_QWEN3_CODER_480_B_A35_B_V1_0(cls) -> "FoundationModelIdentifier":
|
|
5213
|
+
'''Base Model "qwen.qwen3-coder-480b-a35b-v1:0".'''
|
|
5214
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "QWEN_QWEN3_CODER_480B_A35B_V1_0"))
|
|
5215
|
+
|
|
5169
5216
|
@jsii.python.classproperty
|
|
5170
5217
|
@jsii.member(jsii_name="STABILITY_SD3_5_LARGE_V1_0")
|
|
5171
5218
|
def STABILITY_SD3_5_LARGE_V1_0(cls) -> "FoundationModelIdentifier":
|
|
@@ -28384,6 +28431,7 @@ class CfnGuardrail(
|
|
|
28384
28431
|
blocked_input_messaging: builtins.str,
|
|
28385
28432
|
blocked_outputs_messaging: builtins.str,
|
|
28386
28433
|
name: builtins.str,
|
|
28434
|
+
automated_reasoning_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.AutomatedReasoningPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
28387
28435
|
content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.ContentPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
28388
28436
|
contextual_grounding_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.ContextualGroundingPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
28389
28437
|
cross_region_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.GuardrailCrossRegionConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -28400,6 +28448,7 @@ class CfnGuardrail(
|
|
|
28400
28448
|
:param blocked_input_messaging: The message to return when the guardrail blocks a prompt.
|
|
28401
28449
|
:param blocked_outputs_messaging: The message to return when the guardrail blocks a model response.
|
|
28402
28450
|
:param name: The name of the guardrail.
|
|
28451
|
+
:param automated_reasoning_policy_config: Configuration settings for integrating Automated Reasoning policies with Amazon Bedrock Guardrails.
|
|
28403
28452
|
:param content_policy_config: The content filter policies to configure for the guardrail.
|
|
28404
28453
|
:param contextual_grounding_policy_config: Contextual grounding policy config for a guardrail.
|
|
28405
28454
|
:param cross_region_config: The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination AWS Regions where guardrail inference requests can be automatically routed. Using guardrail profiles helps maintain guardrail performance and reliability when demand increases. For more information, see the `Amazon Bedrock User Guide <https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html>`_ .
|
|
@@ -28418,6 +28467,7 @@ class CfnGuardrail(
|
|
|
28418
28467
|
blocked_input_messaging=blocked_input_messaging,
|
|
28419
28468
|
blocked_outputs_messaging=blocked_outputs_messaging,
|
|
28420
28469
|
name=name,
|
|
28470
|
+
automated_reasoning_policy_config=automated_reasoning_policy_config,
|
|
28421
28471
|
content_policy_config=content_policy_config,
|
|
28422
28472
|
contextual_grounding_policy_config=contextual_grounding_policy_config,
|
|
28423
28473
|
cross_region_config=cross_region_config,
|
|
@@ -28595,6 +28645,24 @@ class CfnGuardrail(
|
|
|
28595
28645
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
28596
28646
|
jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
|
|
28597
28647
|
|
|
28648
|
+
@builtins.property
|
|
28649
|
+
@jsii.member(jsii_name="automatedReasoningPolicyConfig")
|
|
28650
|
+
def automated_reasoning_policy_config(
|
|
28651
|
+
self,
|
|
28652
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.AutomatedReasoningPolicyConfigProperty"]]:
|
|
28653
|
+
'''Configuration settings for integrating Automated Reasoning policies with Amazon Bedrock Guardrails.'''
|
|
28654
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.AutomatedReasoningPolicyConfigProperty"]], jsii.get(self, "automatedReasoningPolicyConfig"))
|
|
28655
|
+
|
|
28656
|
+
@automated_reasoning_policy_config.setter
|
|
28657
|
+
def automated_reasoning_policy_config(
|
|
28658
|
+
self,
|
|
28659
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.AutomatedReasoningPolicyConfigProperty"]],
|
|
28660
|
+
) -> None:
|
|
28661
|
+
if __debug__:
|
|
28662
|
+
type_hints = typing.get_type_hints(_typecheckingstub__0f7e988f8aa9a49e9c7d18479b2e890b8fe801c669022cbb74dafe4a3a01f399)
|
|
28663
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
28664
|
+
jsii.set(self, "automatedReasoningPolicyConfig", value) # pyright: ignore[reportArgumentType]
|
|
28665
|
+
|
|
28598
28666
|
@builtins.property
|
|
28599
28667
|
@jsii.member(jsii_name="contentPolicyConfig")
|
|
28600
28668
|
def content_policy_config(
|
|
@@ -28742,6 +28810,84 @@ class CfnGuardrail(
|
|
|
28742
28810
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
28743
28811
|
jsii.set(self, "wordPolicyConfig", value) # pyright: ignore[reportArgumentType]
|
|
28744
28812
|
|
|
28813
|
+
@jsii.data_type(
|
|
28814
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.AutomatedReasoningPolicyConfigProperty",
|
|
28815
|
+
jsii_struct_bases=[],
|
|
28816
|
+
name_mapping={
|
|
28817
|
+
"policies": "policies",
|
|
28818
|
+
"confidence_threshold": "confidenceThreshold",
|
|
28819
|
+
},
|
|
28820
|
+
)
|
|
28821
|
+
class AutomatedReasoningPolicyConfigProperty:
|
|
28822
|
+
def __init__(
|
|
28823
|
+
self,
|
|
28824
|
+
*,
|
|
28825
|
+
policies: typing.Sequence[builtins.str],
|
|
28826
|
+
confidence_threshold: typing.Optional[jsii.Number] = None,
|
|
28827
|
+
) -> None:
|
|
28828
|
+
'''Configuration settings for integrating Automated Reasoning policies with Amazon Bedrock Guardrails.
|
|
28829
|
+
|
|
28830
|
+
:param policies: The list of Automated Reasoning policy ARNs that should be applied as part of this guardrail configuration.
|
|
28831
|
+
:param confidence_threshold: The minimum confidence level required for Automated Reasoning policy violations to trigger guardrail actions. Values range from 0.0 to 1.0.
|
|
28832
|
+
|
|
28833
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-automatedreasoningpolicyconfig.html
|
|
28834
|
+
:exampleMetadata: fixture=_generated
|
|
28835
|
+
|
|
28836
|
+
Example::
|
|
28837
|
+
|
|
28838
|
+
# The code below shows an example of how to instantiate this type.
|
|
28839
|
+
# The values are placeholders you should change.
|
|
28840
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
28841
|
+
|
|
28842
|
+
automated_reasoning_policy_config_property = bedrock.CfnGuardrail.AutomatedReasoningPolicyConfigProperty(
|
|
28843
|
+
policies=["policies"],
|
|
28844
|
+
|
|
28845
|
+
# the properties below are optional
|
|
28846
|
+
confidence_threshold=123
|
|
28847
|
+
)
|
|
28848
|
+
'''
|
|
28849
|
+
if __debug__:
|
|
28850
|
+
type_hints = typing.get_type_hints(_typecheckingstub__81b300ba729d19904cc1eb50e4cff612a346a658e152b6b4c77f39f797f9571a)
|
|
28851
|
+
check_type(argname="argument policies", value=policies, expected_type=type_hints["policies"])
|
|
28852
|
+
check_type(argname="argument confidence_threshold", value=confidence_threshold, expected_type=type_hints["confidence_threshold"])
|
|
28853
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
28854
|
+
"policies": policies,
|
|
28855
|
+
}
|
|
28856
|
+
if confidence_threshold is not None:
|
|
28857
|
+
self._values["confidence_threshold"] = confidence_threshold
|
|
28858
|
+
|
|
28859
|
+
@builtins.property
|
|
28860
|
+
def policies(self) -> typing.List[builtins.str]:
|
|
28861
|
+
'''The list of Automated Reasoning policy ARNs that should be applied as part of this guardrail configuration.
|
|
28862
|
+
|
|
28863
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-automatedreasoningpolicyconfig.html#cfn-bedrock-guardrail-automatedreasoningpolicyconfig-policies
|
|
28864
|
+
'''
|
|
28865
|
+
result = self._values.get("policies")
|
|
28866
|
+
assert result is not None, "Required property 'policies' is missing"
|
|
28867
|
+
return typing.cast(typing.List[builtins.str], result)
|
|
28868
|
+
|
|
28869
|
+
@builtins.property
|
|
28870
|
+
def confidence_threshold(self) -> typing.Optional[jsii.Number]:
|
|
28871
|
+
'''The minimum confidence level required for Automated Reasoning policy violations to trigger guardrail actions.
|
|
28872
|
+
|
|
28873
|
+
Values range from 0.0 to 1.0.
|
|
28874
|
+
|
|
28875
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-automatedreasoningpolicyconfig.html#cfn-bedrock-guardrail-automatedreasoningpolicyconfig-confidencethreshold
|
|
28876
|
+
'''
|
|
28877
|
+
result = self._values.get("confidence_threshold")
|
|
28878
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
28879
|
+
|
|
28880
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
28881
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
28882
|
+
|
|
28883
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
28884
|
+
return not (rhs == self)
|
|
28885
|
+
|
|
28886
|
+
def __repr__(self) -> str:
|
|
28887
|
+
return "AutomatedReasoningPolicyConfigProperty(%s)" % ", ".join(
|
|
28888
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
28889
|
+
)
|
|
28890
|
+
|
|
28745
28891
|
@jsii.data_type(
|
|
28746
28892
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.ContentFilterConfigProperty",
|
|
28747
28893
|
jsii_struct_bases=[],
|
|
@@ -39959,6 +40105,7 @@ def _typecheckingstub__e16800cc7473874d0d58b13a772dade51a596e19ff440f95ad243d236
|
|
|
39959
40105
|
blocked_input_messaging: builtins.str,
|
|
39960
40106
|
blocked_outputs_messaging: builtins.str,
|
|
39961
40107
|
name: builtins.str,
|
|
40108
|
+
automated_reasoning_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.AutomatedReasoningPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
39962
40109
|
content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContentPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
39963
40110
|
contextual_grounding_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContextualGroundingPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
39964
40111
|
cross_region_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.GuardrailCrossRegionConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -42448,6 +42595,7 @@ def _typecheckingstub__2043b4e3280827dde584095cdad9778bf2076242696d52ba5a39dc96c
|
|
|
42448
42595
|
blocked_input_messaging: builtins.str,
|
|
42449
42596
|
blocked_outputs_messaging: builtins.str,
|
|
42450
42597
|
name: builtins.str,
|
|
42598
|
+
automated_reasoning_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.AutomatedReasoningPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
42451
42599
|
content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContentPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
42452
42600
|
contextual_grounding_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContextualGroundingPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
42453
42601
|
cross_region_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.GuardrailCrossRegionConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -42491,6 +42639,12 @@ def _typecheckingstub__4214430bb449bbe8c35bffe05d8f030f2f1e4d9bf03e87e52eaf3920f
|
|
|
42491
42639
|
"""Type checking stubs"""
|
|
42492
42640
|
pass
|
|
42493
42641
|
|
|
42642
|
+
def _typecheckingstub__0f7e988f8aa9a49e9c7d18479b2e890b8fe801c669022cbb74dafe4a3a01f399(
|
|
42643
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.AutomatedReasoningPolicyConfigProperty]],
|
|
42644
|
+
) -> None:
|
|
42645
|
+
"""Type checking stubs"""
|
|
42646
|
+
pass
|
|
42647
|
+
|
|
42494
42648
|
def _typecheckingstub__a2352c360e9d740d982528265b1e13ef0cbbc639f4ce7a9811f5347cf9c39343(
|
|
42495
42649
|
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.ContentPolicyConfigProperty]],
|
|
42496
42650
|
) -> None:
|
|
@@ -42545,6 +42699,14 @@ def _typecheckingstub__8db61eded81d93fbd03b059a0415cd544498a84333ec2ae6cb76fed58
|
|
|
42545
42699
|
"""Type checking stubs"""
|
|
42546
42700
|
pass
|
|
42547
42701
|
|
|
42702
|
+
def _typecheckingstub__81b300ba729d19904cc1eb50e4cff612a346a658e152b6b4c77f39f797f9571a(
|
|
42703
|
+
*,
|
|
42704
|
+
policies: typing.Sequence[builtins.str],
|
|
42705
|
+
confidence_threshold: typing.Optional[jsii.Number] = None,
|
|
42706
|
+
) -> None:
|
|
42707
|
+
"""Type checking stubs"""
|
|
42708
|
+
pass
|
|
42709
|
+
|
|
42548
42710
|
def _typecheckingstub__e931f7f6b53869d60aab0ecda0e56f276982aaf3a1ee755be3434f26d989ebd5(
|
|
42549
42711
|
*,
|
|
42550
42712
|
input_strength: builtins.str,
|