aws-cdk-lib 2.216.0__py3-none-any.whl → 2.218.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 +60 -28
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.216.0.jsii.tgz → aws-cdk-lib@2.218.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +1 -1
- aws_cdk/aws_amazonmq/__init__.py +87 -0
- aws_cdk/aws_amplify/__init__.py +8 -8
- aws_cdk/aws_apigateway/__init__.py +229 -6
- aws_cdk/aws_apigatewayv2/__init__.py +60 -2
- aws_cdk/aws_appconfig/__init__.py +145 -0
- aws_cdk/aws_appflow/__init__.py +116 -0
- aws_cdk/aws_appintegrations/__init__.py +116 -0
- aws_cdk/aws_appmesh/__init__.py +12 -12
- aws_cdk/aws_appstream/__init__.py +101 -4
- aws_cdk/aws_appsync/__init__.py +61 -3
- aws_cdk/aws_apptest/__init__.py +58 -0
- aws_cdk/aws_aps/__init__.py +459 -0
- aws_cdk/aws_athena/__init__.py +58 -0
- aws_cdk/aws_auditmanager/__init__.py +58 -0
- aws_cdk/aws_backup/__init__.py +145 -0
- aws_cdk/aws_batch/__init__.py +64 -2
- aws_cdk/aws_bedrock/__init__.py +277 -0
- aws_cdk/aws_bedrockagentcore/__init__.py +3178 -0
- aws_cdk/aws_cassandra/__init__.py +29 -0
- aws_cdk/aws_certificatemanager/__init__.py +38 -10
- aws_cdk/aws_cleanrooms/__init__.py +163 -0
- aws_cdk/aws_cloudformation/__init__.py +14 -14
- aws_cdk/aws_cloudfront/__init__.py +69 -8
- aws_cdk/aws_cloudfront_origins/__init__.py +87 -7
- aws_cdk/aws_cloudtrail/__init__.py +58 -0
- aws_cdk/aws_cloudwatch/__init__.py +145 -0
- aws_cdk/aws_codebuild/__init__.py +115 -12
- aws_cdk/aws_codedeploy/__init__.py +29 -0
- aws_cdk/aws_codeguruprofiler/__init__.py +58 -0
- aws_cdk/aws_codepipeline/__init__.py +29 -0
- aws_cdk/aws_cognito/__init__.py +89 -2
- aws_cdk/aws_config/__init__.py +58 -0
- aws_cdk/aws_connect/__init__.py +138 -10
- aws_cdk/aws_cur/__init__.py +86 -3
- aws_cdk/aws_customerprofiles/__init__.py +58 -0
- aws_cdk/aws_datapipeline/__init__.py +29 -0
- aws_cdk/aws_datasync/__init__.py +351 -0
- aws_cdk/aws_datazone/__init__.py +733 -2
- aws_cdk/aws_directoryservice/__init__.py +29 -0
- aws_cdk/aws_dms/__init__.py +58 -0
- aws_cdk/aws_docdb/__init__.py +153 -25
- aws_cdk/aws_dsql/__init__.py +29 -0
- aws_cdk/aws_dynamodb/__init__.py +181 -0
- aws_cdk/aws_ec2/__init__.py +2031 -10
- aws_cdk/aws_ecr/__init__.py +116 -0
- aws_cdk/aws_ecs/__init__.py +142 -12
- aws_cdk/aws_efs/__init__.py +116 -0
- aws_cdk/aws_eks/__init__.py +118 -0
- aws_cdk/aws_elasticache/__init__.py +261 -0
- aws_cdk/aws_elasticbeanstalk/__init__.py +29 -0
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +48 -0
- aws_cdk/aws_elasticsearch/__init__.py +2 -2
- aws_cdk/aws_emr/__init__.py +87 -0
- aws_cdk/aws_emrcontainers/__init__.py +58 -0
- aws_cdk/aws_emrserverless/__init__.py +58 -0
- aws_cdk/aws_entityresolution/__init__.py +145 -0
- aws_cdk/aws_events/__init__.py +290 -0
- aws_cdk/aws_evs/__init__.py +58 -4
- aws_cdk/aws_finspace/__init__.py +58 -0
- aws_cdk/aws_gamelift/__init__.py +507 -56
- aws_cdk/aws_glue/__init__.py +145 -0
- aws_cdk/aws_greengrass/__init__.py +464 -0
- aws_cdk/aws_groundstation/__init__.py +87 -0
- aws_cdk/aws_guardduty/__init__.py +87 -0
- aws_cdk/aws_healthimaging/__init__.py +58 -0
- aws_cdk/aws_healthlake/__init__.py +29 -0
- aws_cdk/aws_iam/__init__.py +1 -1
- aws_cdk/aws_internetmonitor/__init__.py +58 -0
- aws_cdk/aws_iot/__init__.py +957 -0
- aws_cdk/aws_iotanalytics/__init__.py +116 -0
- aws_cdk/aws_iotcoredeviceadvisor/__init__.py +93 -38
- aws_cdk/aws_iotevents/__init__.py +87 -0
- aws_cdk/aws_iotfleethub/__init__.py +58 -0
- aws_cdk/aws_iotfleetwise/__init__.py +116 -0
- aws_cdk/aws_iotsitewise/__init__.py +568 -111
- aws_cdk/aws_iottwinmaker/__init__.py +145 -0
- aws_cdk/aws_iotwireless/__init__.py +464 -0
- aws_cdk/aws_kendra/__init__.py +116 -0
- aws_cdk/aws_kinesis/__init__.py +58 -0
- aws_cdk/aws_kinesisanalytics/__init__.py +31 -0
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +29 -0
- aws_cdk/aws_kinesisfirehose/__init__.py +58 -0
- aws_cdk/aws_kinesisvideo/__init__.py +29 -0
- aws_cdk/aws_kms/__init__.py +68 -2
- aws_cdk/aws_lambda/__init__.py +104 -0
- aws_cdk/aws_lex/__init__.py +29 -0
- aws_cdk/aws_location/__init__.py +348 -0
- aws_cdk/aws_logs/__init__.py +232 -0
- aws_cdk/aws_lookoutequipment/__init__.py +29 -0
- aws_cdk/aws_lookoutvision/__init__.py +58 -0
- aws_cdk/aws_managedblockchain/__init__.py +145 -0
- aws_cdk/aws_medialive/__init__.py +562 -0
- aws_cdk/aws_mediapackage/__init__.py +2 -2
- aws_cdk/aws_mediatailor/__init__.py +174 -0
- aws_cdk/aws_memorydb/__init__.py +203 -0
- aws_cdk/aws_mwaa/__init__.py +58 -0
- aws_cdk/aws_networkfirewall/__init__.py +10 -10
- aws_cdk/aws_networkmanager/__init__.py +92 -0
- aws_cdk/aws_nimblestudio/__init__.py +29 -0
- aws_cdk/aws_odb/__init__.py +2082 -195
- aws_cdk/aws_omics/__init__.py +1520 -103
- aws_cdk/aws_opensearchserverless/__init__.py +222 -21
- aws_cdk/aws_opensearchservice/__init__.py +5 -4
- aws_cdk/aws_opsworks/__init__.py +29 -0
- aws_cdk/aws_opsworkscm/__init__.py +29 -0
- aws_cdk/aws_organizations/__init__.py +116 -0
- aws_cdk/aws_panorama/__init__.py +116 -0
- aws_cdk/aws_pcs/__init__.py +9 -9
- aws_cdk/aws_pinpoint/__init__.py +116 -0
- aws_cdk/aws_qbusiness/__init__.py +232 -0
- aws_cdk/aws_qldb/__init__.py +29 -0
- aws_cdk/aws_quicksight/__init__.py +295 -3
- aws_cdk/aws_rds/__init__.py +402 -58
- aws_cdk/aws_redshift/__init__.py +29 -0
- aws_cdk/aws_rekognition/__init__.py +87 -0
- aws_cdk/aws_resourcegroups/__init__.py +58 -0
- aws_cdk/aws_rolesanywhere/__init__.py +145 -0
- aws_cdk/aws_route53recoveryreadiness/__init__.py +58 -0
- aws_cdk/aws_route53resolver/__init__.py +29 -0
- aws_cdk/aws_s3/__init__.py +116 -0
- aws_cdk/aws_s3express/__init__.py +116 -0
- aws_cdk/aws_sagemaker/__init__.py +715 -1
- aws_cdk/aws_scheduler/__init__.py +29 -0
- aws_cdk/aws_secretsmanager/__init__.py +29 -0
- aws_cdk/aws_servicecatalog/__init__.py +191 -154
- aws_cdk/aws_servicecatalogappregistry/__init__.py +116 -0
- aws_cdk/aws_servicediscovery/__init__.py +58 -0
- aws_cdk/aws_ses/__init__.py +261 -0
- aws_cdk/aws_simspaceweaver/__init__.py +29 -0
- aws_cdk/aws_smsvoice/__init__.py +5218 -0
- aws_cdk/aws_ssm/__init__.py +87 -0
- aws_cdk/aws_synthetics/__init__.py +29 -0
- aws_cdk/aws_timestream/__init__.py +87 -0
- aws_cdk/aws_transfer/__init__.py +274 -12
- aws_cdk/aws_verifiedpermissions/__init__.py +59 -1
- aws_cdk/aws_voiceid/__init__.py +29 -0
- aws_cdk/aws_wisdom/__init__.py +232 -0
- aws_cdk/aws_workspaces/__init__.py +58 -0
- aws_cdk/aws_workspacesinstances/__init__.py +670 -2
- aws_cdk/aws_workspacesthinclient/__init__.py +58 -0
- aws_cdk/pipelines/__init__.py +5 -1
- {aws_cdk_lib-2.216.0.dist-info → aws_cdk_lib-2.218.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.216.0.dist-info → aws_cdk_lib-2.218.0.dist-info}/RECORD +151 -149
- {aws_cdk_lib-2.216.0.dist-info → aws_cdk_lib-2.218.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.216.0.dist-info → aws_cdk_lib-2.218.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.216.0.dist-info → aws_cdk_lib-2.218.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.216.0.dist-info → aws_cdk_lib-2.218.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,
|
|
@@ -6643,6 +6660,48 @@ class CfnAgent(
|
|
|
6643
6660
|
|
|
6644
6661
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
6645
6662
|
|
|
6663
|
+
@jsii.member(jsii_name="fromAgentArn")
|
|
6664
|
+
@builtins.classmethod
|
|
6665
|
+
def from_agent_arn(
|
|
6666
|
+
cls,
|
|
6667
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
6668
|
+
id: builtins.str,
|
|
6669
|
+
arn: builtins.str,
|
|
6670
|
+
) -> IAgentRef:
|
|
6671
|
+
'''Creates a new IAgentRef from an ARN.
|
|
6672
|
+
|
|
6673
|
+
:param scope: -
|
|
6674
|
+
:param id: -
|
|
6675
|
+
:param arn: -
|
|
6676
|
+
'''
|
|
6677
|
+
if __debug__:
|
|
6678
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a50c386b00c38807392130c7c2e5f13011cfa631c2e224873413c4088fe704e9)
|
|
6679
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
6680
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
6681
|
+
check_type(argname="argument arn", value=arn, expected_type=type_hints["arn"])
|
|
6682
|
+
return typing.cast(IAgentRef, jsii.sinvoke(cls, "fromAgentArn", [scope, id, arn]))
|
|
6683
|
+
|
|
6684
|
+
@jsii.member(jsii_name="fromAgentId")
|
|
6685
|
+
@builtins.classmethod
|
|
6686
|
+
def from_agent_id(
|
|
6687
|
+
cls,
|
|
6688
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
6689
|
+
id: builtins.str,
|
|
6690
|
+
agent_id: builtins.str,
|
|
6691
|
+
) -> IAgentRef:
|
|
6692
|
+
'''Creates a new IAgentRef from a agentId.
|
|
6693
|
+
|
|
6694
|
+
:param scope: -
|
|
6695
|
+
:param id: -
|
|
6696
|
+
:param agent_id: -
|
|
6697
|
+
'''
|
|
6698
|
+
if __debug__:
|
|
6699
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8832a4127ba371cbf4e8480b4a27e2ec86907eaf703ccd4380023bcad71ad0c9)
|
|
6700
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
6701
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
6702
|
+
check_type(argname="argument agent_id", value=agent_id, expected_type=type_hints["agent_id"])
|
|
6703
|
+
return typing.cast(IAgentRef, jsii.sinvoke(cls, "fromAgentId", [scope, id, agent_id]))
|
|
6704
|
+
|
|
6646
6705
|
@jsii.member(jsii_name="inspect")
|
|
6647
6706
|
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
6648
6707
|
'''Examines the CloudFormation resource and discloses attributes.
|
|
@@ -8924,6 +8983,27 @@ class CfnAgentAlias(
|
|
|
8924
8983
|
|
|
8925
8984
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
8926
8985
|
|
|
8986
|
+
@jsii.member(jsii_name="fromAgentAliasArn")
|
|
8987
|
+
@builtins.classmethod
|
|
8988
|
+
def from_agent_alias_arn(
|
|
8989
|
+
cls,
|
|
8990
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
8991
|
+
id: builtins.str,
|
|
8992
|
+
arn: builtins.str,
|
|
8993
|
+
) -> IAgentAliasRef:
|
|
8994
|
+
'''Creates a new IAgentAliasRef from an ARN.
|
|
8995
|
+
|
|
8996
|
+
:param scope: -
|
|
8997
|
+
:param id: -
|
|
8998
|
+
:param arn: -
|
|
8999
|
+
'''
|
|
9000
|
+
if __debug__:
|
|
9001
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e6591016d37503aa9857cba22986f12d7e87f0fbb1f7f3ab93e7b00dce6b951b)
|
|
9002
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
9003
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
9004
|
+
check_type(argname="argument arn", value=arn, expected_type=type_hints["arn"])
|
|
9005
|
+
return typing.cast(IAgentAliasRef, jsii.sinvoke(cls, "fromAgentAliasArn", [scope, id, arn]))
|
|
9006
|
+
|
|
8927
9007
|
@jsii.member(jsii_name="inspect")
|
|
8928
9008
|
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
8929
9009
|
'''Examines the CloudFormation resource and discloses attributes.
|
|
@@ -28414,6 +28494,7 @@ class CfnGuardrail(
|
|
|
28414
28494
|
blocked_input_messaging: builtins.str,
|
|
28415
28495
|
blocked_outputs_messaging: builtins.str,
|
|
28416
28496
|
name: builtins.str,
|
|
28497
|
+
automated_reasoning_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.AutomatedReasoningPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
28417
28498
|
content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.ContentPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
28418
28499
|
contextual_grounding_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.ContextualGroundingPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
28419
28500
|
cross_region_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.GuardrailCrossRegionConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -28430,6 +28511,7 @@ class CfnGuardrail(
|
|
|
28430
28511
|
:param blocked_input_messaging: The message to return when the guardrail blocks a prompt.
|
|
28431
28512
|
:param blocked_outputs_messaging: The message to return when the guardrail blocks a model response.
|
|
28432
28513
|
:param name: The name of the guardrail.
|
|
28514
|
+
:param automated_reasoning_policy_config: Configuration settings for integrating Automated Reasoning policies with Amazon Bedrock Guardrails.
|
|
28433
28515
|
:param content_policy_config: The content filter policies to configure for the guardrail.
|
|
28434
28516
|
:param contextual_grounding_policy_config: Contextual grounding policy config for a guardrail.
|
|
28435
28517
|
: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>`_ .
|
|
@@ -28448,6 +28530,7 @@ class CfnGuardrail(
|
|
|
28448
28530
|
blocked_input_messaging=blocked_input_messaging,
|
|
28449
28531
|
blocked_outputs_messaging=blocked_outputs_messaging,
|
|
28450
28532
|
name=name,
|
|
28533
|
+
automated_reasoning_policy_config=automated_reasoning_policy_config,
|
|
28451
28534
|
content_policy_config=content_policy_config,
|
|
28452
28535
|
contextual_grounding_policy_config=contextual_grounding_policy_config,
|
|
28453
28536
|
cross_region_config=cross_region_config,
|
|
@@ -28625,6 +28708,24 @@ class CfnGuardrail(
|
|
|
28625
28708
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
28626
28709
|
jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
|
|
28627
28710
|
|
|
28711
|
+
@builtins.property
|
|
28712
|
+
@jsii.member(jsii_name="automatedReasoningPolicyConfig")
|
|
28713
|
+
def automated_reasoning_policy_config(
|
|
28714
|
+
self,
|
|
28715
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.AutomatedReasoningPolicyConfigProperty"]]:
|
|
28716
|
+
'''Configuration settings for integrating Automated Reasoning policies with Amazon Bedrock Guardrails.'''
|
|
28717
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.AutomatedReasoningPolicyConfigProperty"]], jsii.get(self, "automatedReasoningPolicyConfig"))
|
|
28718
|
+
|
|
28719
|
+
@automated_reasoning_policy_config.setter
|
|
28720
|
+
def automated_reasoning_policy_config(
|
|
28721
|
+
self,
|
|
28722
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.AutomatedReasoningPolicyConfigProperty"]],
|
|
28723
|
+
) -> None:
|
|
28724
|
+
if __debug__:
|
|
28725
|
+
type_hints = typing.get_type_hints(_typecheckingstub__0f7e988f8aa9a49e9c7d18479b2e890b8fe801c669022cbb74dafe4a3a01f399)
|
|
28726
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
28727
|
+
jsii.set(self, "automatedReasoningPolicyConfig", value) # pyright: ignore[reportArgumentType]
|
|
28728
|
+
|
|
28628
28729
|
@builtins.property
|
|
28629
28730
|
@jsii.member(jsii_name="contentPolicyConfig")
|
|
28630
28731
|
def content_policy_config(
|
|
@@ -28772,6 +28873,84 @@ class CfnGuardrail(
|
|
|
28772
28873
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
28773
28874
|
jsii.set(self, "wordPolicyConfig", value) # pyright: ignore[reportArgumentType]
|
|
28774
28875
|
|
|
28876
|
+
@jsii.data_type(
|
|
28877
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.AutomatedReasoningPolicyConfigProperty",
|
|
28878
|
+
jsii_struct_bases=[],
|
|
28879
|
+
name_mapping={
|
|
28880
|
+
"policies": "policies",
|
|
28881
|
+
"confidence_threshold": "confidenceThreshold",
|
|
28882
|
+
},
|
|
28883
|
+
)
|
|
28884
|
+
class AutomatedReasoningPolicyConfigProperty:
|
|
28885
|
+
def __init__(
|
|
28886
|
+
self,
|
|
28887
|
+
*,
|
|
28888
|
+
policies: typing.Sequence[builtins.str],
|
|
28889
|
+
confidence_threshold: typing.Optional[jsii.Number] = None,
|
|
28890
|
+
) -> None:
|
|
28891
|
+
'''Configuration settings for integrating Automated Reasoning policies with Amazon Bedrock Guardrails.
|
|
28892
|
+
|
|
28893
|
+
:param policies: The list of Automated Reasoning policy ARNs that should be applied as part of this guardrail configuration.
|
|
28894
|
+
: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.
|
|
28895
|
+
|
|
28896
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-automatedreasoningpolicyconfig.html
|
|
28897
|
+
:exampleMetadata: fixture=_generated
|
|
28898
|
+
|
|
28899
|
+
Example::
|
|
28900
|
+
|
|
28901
|
+
# The code below shows an example of how to instantiate this type.
|
|
28902
|
+
# The values are placeholders you should change.
|
|
28903
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
28904
|
+
|
|
28905
|
+
automated_reasoning_policy_config_property = bedrock.CfnGuardrail.AutomatedReasoningPolicyConfigProperty(
|
|
28906
|
+
policies=["policies"],
|
|
28907
|
+
|
|
28908
|
+
# the properties below are optional
|
|
28909
|
+
confidence_threshold=123
|
|
28910
|
+
)
|
|
28911
|
+
'''
|
|
28912
|
+
if __debug__:
|
|
28913
|
+
type_hints = typing.get_type_hints(_typecheckingstub__81b300ba729d19904cc1eb50e4cff612a346a658e152b6b4c77f39f797f9571a)
|
|
28914
|
+
check_type(argname="argument policies", value=policies, expected_type=type_hints["policies"])
|
|
28915
|
+
check_type(argname="argument confidence_threshold", value=confidence_threshold, expected_type=type_hints["confidence_threshold"])
|
|
28916
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
28917
|
+
"policies": policies,
|
|
28918
|
+
}
|
|
28919
|
+
if confidence_threshold is not None:
|
|
28920
|
+
self._values["confidence_threshold"] = confidence_threshold
|
|
28921
|
+
|
|
28922
|
+
@builtins.property
|
|
28923
|
+
def policies(self) -> typing.List[builtins.str]:
|
|
28924
|
+
'''The list of Automated Reasoning policy ARNs that should be applied as part of this guardrail configuration.
|
|
28925
|
+
|
|
28926
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-automatedreasoningpolicyconfig.html#cfn-bedrock-guardrail-automatedreasoningpolicyconfig-policies
|
|
28927
|
+
'''
|
|
28928
|
+
result = self._values.get("policies")
|
|
28929
|
+
assert result is not None, "Required property 'policies' is missing"
|
|
28930
|
+
return typing.cast(typing.List[builtins.str], result)
|
|
28931
|
+
|
|
28932
|
+
@builtins.property
|
|
28933
|
+
def confidence_threshold(self) -> typing.Optional[jsii.Number]:
|
|
28934
|
+
'''The minimum confidence level required for Automated Reasoning policy violations to trigger guardrail actions.
|
|
28935
|
+
|
|
28936
|
+
Values range from 0.0 to 1.0.
|
|
28937
|
+
|
|
28938
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-automatedreasoningpolicyconfig.html#cfn-bedrock-guardrail-automatedreasoningpolicyconfig-confidencethreshold
|
|
28939
|
+
'''
|
|
28940
|
+
result = self._values.get("confidence_threshold")
|
|
28941
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
28942
|
+
|
|
28943
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
28944
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
28945
|
+
|
|
28946
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
28947
|
+
return not (rhs == self)
|
|
28948
|
+
|
|
28949
|
+
def __repr__(self) -> str:
|
|
28950
|
+
return "AutomatedReasoningPolicyConfigProperty(%s)" % ", ".join(
|
|
28951
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
28952
|
+
)
|
|
28953
|
+
|
|
28775
28954
|
@jsii.data_type(
|
|
28776
28955
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.ContentFilterConfigProperty",
|
|
28777
28956
|
jsii_struct_bases=[],
|
|
@@ -31428,6 +31607,48 @@ class CfnKnowledgeBase(
|
|
|
31428
31607
|
|
|
31429
31608
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
31430
31609
|
|
|
31610
|
+
@jsii.member(jsii_name="fromKnowledgeBaseArn")
|
|
31611
|
+
@builtins.classmethod
|
|
31612
|
+
def from_knowledge_base_arn(
|
|
31613
|
+
cls,
|
|
31614
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
31615
|
+
id: builtins.str,
|
|
31616
|
+
arn: builtins.str,
|
|
31617
|
+
) -> IKnowledgeBaseRef:
|
|
31618
|
+
'''Creates a new IKnowledgeBaseRef from an ARN.
|
|
31619
|
+
|
|
31620
|
+
:param scope: -
|
|
31621
|
+
:param id: -
|
|
31622
|
+
:param arn: -
|
|
31623
|
+
'''
|
|
31624
|
+
if __debug__:
|
|
31625
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f98092724f410a99d7d4dcc3737acddeb21df146f3241ebee83d2d0383c11268)
|
|
31626
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
31627
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
31628
|
+
check_type(argname="argument arn", value=arn, expected_type=type_hints["arn"])
|
|
31629
|
+
return typing.cast(IKnowledgeBaseRef, jsii.sinvoke(cls, "fromKnowledgeBaseArn", [scope, id, arn]))
|
|
31630
|
+
|
|
31631
|
+
@jsii.member(jsii_name="fromKnowledgeBaseId")
|
|
31632
|
+
@builtins.classmethod
|
|
31633
|
+
def from_knowledge_base_id(
|
|
31634
|
+
cls,
|
|
31635
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
31636
|
+
id: builtins.str,
|
|
31637
|
+
knowledge_base_id: builtins.str,
|
|
31638
|
+
) -> IKnowledgeBaseRef:
|
|
31639
|
+
'''Creates a new IKnowledgeBaseRef from a knowledgeBaseId.
|
|
31640
|
+
|
|
31641
|
+
:param scope: -
|
|
31642
|
+
:param id: -
|
|
31643
|
+
:param knowledge_base_id: -
|
|
31644
|
+
'''
|
|
31645
|
+
if __debug__:
|
|
31646
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6e330de9640222ac7605e18bdc78b57c7813d7b535a850c1d84f6b0317c73430)
|
|
31647
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
31648
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
31649
|
+
check_type(argname="argument knowledge_base_id", value=knowledge_base_id, expected_type=type_hints["knowledge_base_id"])
|
|
31650
|
+
return typing.cast(IKnowledgeBaseRef, jsii.sinvoke(cls, "fromKnowledgeBaseId", [scope, id, knowledge_base_id]))
|
|
31651
|
+
|
|
31431
31652
|
@jsii.member(jsii_name="inspect")
|
|
31432
31653
|
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
31433
31654
|
'''Examines the CloudFormation resource and discloses attributes.
|
|
@@ -39989,6 +40210,7 @@ def _typecheckingstub__e16800cc7473874d0d58b13a772dade51a596e19ff440f95ad243d236
|
|
|
39989
40210
|
blocked_input_messaging: builtins.str,
|
|
39990
40211
|
blocked_outputs_messaging: builtins.str,
|
|
39991
40212
|
name: builtins.str,
|
|
40213
|
+
automated_reasoning_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.AutomatedReasoningPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
39992
40214
|
content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContentPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
39993
40215
|
contextual_grounding_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContextualGroundingPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
39994
40216
|
cross_region_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.GuardrailCrossRegionConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -40179,6 +40401,22 @@ def _typecheckingstub__facaad57ffe16da42f099d2b7997f3e6fd3b9eba46fd226d8fb5afe28
|
|
|
40179
40401
|
"""Type checking stubs"""
|
|
40180
40402
|
pass
|
|
40181
40403
|
|
|
40404
|
+
def _typecheckingstub__a50c386b00c38807392130c7c2e5f13011cfa631c2e224873413c4088fe704e9(
|
|
40405
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
40406
|
+
id: builtins.str,
|
|
40407
|
+
arn: builtins.str,
|
|
40408
|
+
) -> None:
|
|
40409
|
+
"""Type checking stubs"""
|
|
40410
|
+
pass
|
|
40411
|
+
|
|
40412
|
+
def _typecheckingstub__8832a4127ba371cbf4e8480b4a27e2ec86907eaf703ccd4380023bcad71ad0c9(
|
|
40413
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
40414
|
+
id: builtins.str,
|
|
40415
|
+
agent_id: builtins.str,
|
|
40416
|
+
) -> None:
|
|
40417
|
+
"""Type checking stubs"""
|
|
40418
|
+
pass
|
|
40419
|
+
|
|
40182
40420
|
def _typecheckingstub__c671dddc0216853bf62cdd51e6c2889b8dfe0d7819a455df2ad71c5b8d67daba(
|
|
40183
40421
|
inspector: _TreeInspector_488e0dd5,
|
|
40184
40422
|
) -> None:
|
|
@@ -40485,6 +40723,14 @@ def _typecheckingstub__9a8230a990c5fac91dc09e3de4211aa6f82fce95537f199a7987ca92f
|
|
|
40485
40723
|
"""Type checking stubs"""
|
|
40486
40724
|
pass
|
|
40487
40725
|
|
|
40726
|
+
def _typecheckingstub__e6591016d37503aa9857cba22986f12d7e87f0fbb1f7f3ab93e7b00dce6b951b(
|
|
40727
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
40728
|
+
id: builtins.str,
|
|
40729
|
+
arn: builtins.str,
|
|
40730
|
+
) -> None:
|
|
40731
|
+
"""Type checking stubs"""
|
|
40732
|
+
pass
|
|
40733
|
+
|
|
40488
40734
|
def _typecheckingstub__881be8885c059b078e3110beb1aed396db2ce3f0505bec32be8cedeba399356d(
|
|
40489
40735
|
inspector: _TreeInspector_488e0dd5,
|
|
40490
40736
|
) -> None:
|
|
@@ -42478,6 +42724,7 @@ def _typecheckingstub__2043b4e3280827dde584095cdad9778bf2076242696d52ba5a39dc96c
|
|
|
42478
42724
|
blocked_input_messaging: builtins.str,
|
|
42479
42725
|
blocked_outputs_messaging: builtins.str,
|
|
42480
42726
|
name: builtins.str,
|
|
42727
|
+
automated_reasoning_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.AutomatedReasoningPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
42481
42728
|
content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContentPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
42482
42729
|
contextual_grounding_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContextualGroundingPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
42483
42730
|
cross_region_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.GuardrailCrossRegionConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -42521,6 +42768,12 @@ def _typecheckingstub__4214430bb449bbe8c35bffe05d8f030f2f1e4d9bf03e87e52eaf3920f
|
|
|
42521
42768
|
"""Type checking stubs"""
|
|
42522
42769
|
pass
|
|
42523
42770
|
|
|
42771
|
+
def _typecheckingstub__0f7e988f8aa9a49e9c7d18479b2e890b8fe801c669022cbb74dafe4a3a01f399(
|
|
42772
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.AutomatedReasoningPolicyConfigProperty]],
|
|
42773
|
+
) -> None:
|
|
42774
|
+
"""Type checking stubs"""
|
|
42775
|
+
pass
|
|
42776
|
+
|
|
42524
42777
|
def _typecheckingstub__a2352c360e9d740d982528265b1e13ef0cbbc639f4ce7a9811f5347cf9c39343(
|
|
42525
42778
|
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGuardrail.ContentPolicyConfigProperty]],
|
|
42526
42779
|
) -> None:
|
|
@@ -42575,6 +42828,14 @@ def _typecheckingstub__8db61eded81d93fbd03b059a0415cd544498a84333ec2ae6cb76fed58
|
|
|
42575
42828
|
"""Type checking stubs"""
|
|
42576
42829
|
pass
|
|
42577
42830
|
|
|
42831
|
+
def _typecheckingstub__81b300ba729d19904cc1eb50e4cff612a346a658e152b6b4c77f39f797f9571a(
|
|
42832
|
+
*,
|
|
42833
|
+
policies: typing.Sequence[builtins.str],
|
|
42834
|
+
confidence_threshold: typing.Optional[jsii.Number] = None,
|
|
42835
|
+
) -> None:
|
|
42836
|
+
"""Type checking stubs"""
|
|
42837
|
+
pass
|
|
42838
|
+
|
|
42578
42839
|
def _typecheckingstub__e931f7f6b53869d60aab0ecda0e56f276982aaf3a1ee755be3434f26d989ebd5(
|
|
42579
42840
|
*,
|
|
42580
42841
|
input_strength: builtins.str,
|
|
@@ -42846,6 +43107,22 @@ def _typecheckingstub__6ef81b8dcbedbd76b5a39a6fd5a967ba49aa887b63aad45e2bc246c96
|
|
|
42846
43107
|
"""Type checking stubs"""
|
|
42847
43108
|
pass
|
|
42848
43109
|
|
|
43110
|
+
def _typecheckingstub__f98092724f410a99d7d4dcc3737acddeb21df146f3241ebee83d2d0383c11268(
|
|
43111
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
43112
|
+
id: builtins.str,
|
|
43113
|
+
arn: builtins.str,
|
|
43114
|
+
) -> None:
|
|
43115
|
+
"""Type checking stubs"""
|
|
43116
|
+
pass
|
|
43117
|
+
|
|
43118
|
+
def _typecheckingstub__6e330de9640222ac7605e18bdc78b57c7813d7b535a850c1d84f6b0317c73430(
|
|
43119
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
43120
|
+
id: builtins.str,
|
|
43121
|
+
knowledge_base_id: builtins.str,
|
|
43122
|
+
) -> None:
|
|
43123
|
+
"""Type checking stubs"""
|
|
43124
|
+
pass
|
|
43125
|
+
|
|
42849
43126
|
def _typecheckingstub__ff4bc276c76fa89d7e7e13dc3bbd6542bf9248bddf93da183855dfef109357e1(
|
|
42850
43127
|
inspector: _TreeInspector_488e0dd5,
|
|
42851
43128
|
) -> None:
|