aws-cdk-lib 2.142.1__py3-none-any.whl → 2.143.1__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.142.1.jsii.tgz → aws-cdk-lib@2.143.1.jsii.tgz} +0 -0
- aws_cdk/aws_amplify/__init__.py +12 -5
- aws_cdk/aws_backup/__init__.py +3 -3
- aws_cdk/aws_batch/__init__.py +237 -0
- aws_cdk/aws_bedrock/__init__.py +700 -16
- aws_cdk/aws_budgets/__init__.py +282 -3
- aws_cdk/aws_cloudtrail/__init__.py +12 -2
- aws_cdk/aws_codebuild/__init__.py +44 -0
- aws_cdk/aws_codepipeline/__init__.py +91 -4
- aws_cdk/aws_cognito/__init__.py +75 -0
- aws_cdk/aws_datazone/__init__.py +1743 -448
- aws_cdk/aws_dynamodb/__init__.py +60 -25
- aws_cdk/aws_ec2/__init__.py +112 -39
- aws_cdk/aws_ecs/__init__.py +3 -3
- aws_cdk/aws_ecs_patterns/__init__.py +106 -0
- aws_cdk/aws_eks/__init__.py +13 -10
- aws_cdk/aws_elasticache/__init__.py +9 -0
- aws_cdk/aws_events/__init__.py +219 -14
- aws_cdk/aws_events_targets/__init__.py +140 -3
- aws_cdk/aws_fms/__init__.py +42 -43
- aws_cdk/aws_fsx/__init__.py +3 -3
- aws_cdk/aws_identitystore/__init__.py +11 -11
- aws_cdk/aws_lambda/__init__.py +45 -0
- aws_cdk/aws_lambda_nodejs/__init__.py +16 -6
- aws_cdk/aws_lightsail/__init__.py +9 -0
- aws_cdk/aws_location/__init__.py +8 -4
- aws_cdk/aws_mediaconnect/__init__.py +1789 -39
- aws_cdk/aws_mediatailor/__init__.py +21 -1
- aws_cdk/aws_mwaa/__init__.py +82 -0
- aws_cdk/aws_neptune/__init__.py +374 -0
- aws_cdk/aws_personalize/__init__.py +9 -3
- aws_cdk/aws_pipes/__init__.py +7 -7
- aws_cdk/aws_quicksight/__init__.py +684 -156
- aws_cdk/aws_rds/__init__.py +88 -24
- aws_cdk/aws_redshift/__init__.py +0 -46
- aws_cdk/aws_route53resolver/__init__.py +23 -0
- aws_cdk/aws_s3/__init__.py +4 -4
- aws_cdk/aws_sagemaker/__init__.py +185 -4
- aws_cdk/aws_securityhub/__init__.py +387 -1
- aws_cdk/aws_ssm/__init__.py +14 -6
- aws_cdk/aws_sso/__init__.py +1243 -34
- aws_cdk/cx_api/__init__.py +16 -0
- {aws_cdk_lib-2.142.1.dist-info → aws_cdk_lib-2.143.1.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.142.1.dist-info → aws_cdk_lib-2.143.1.dist-info}/RECORD +49 -49
- {aws_cdk_lib-2.142.1.dist-info → aws_cdk_lib-2.143.1.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.142.1.dist-info → aws_cdk_lib-2.143.1.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.142.1.dist-info → aws_cdk_lib-2.143.1.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.142.1.dist-info → aws_cdk_lib-2.143.1.dist-info}/top_level.txt +0 -0
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -94,6 +94,7 @@ class CfnAgent(
|
|
|
94
94
|
|
|
95
95
|
# the properties below are optional
|
|
96
96
|
action_group_executor=bedrock.CfnAgent.ActionGroupExecutorProperty(
|
|
97
|
+
custom_control="customControl",
|
|
97
98
|
lambda_="lambda"
|
|
98
99
|
),
|
|
99
100
|
action_group_state="actionGroupState",
|
|
@@ -105,6 +106,23 @@ class CfnAgent(
|
|
|
105
106
|
)
|
|
106
107
|
),
|
|
107
108
|
description="description",
|
|
109
|
+
function_schema=bedrock.CfnAgent.FunctionSchemaProperty(
|
|
110
|
+
functions=[bedrock.CfnAgent.FunctionProperty(
|
|
111
|
+
name="name",
|
|
112
|
+
|
|
113
|
+
# the properties below are optional
|
|
114
|
+
description="description",
|
|
115
|
+
parameters={
|
|
116
|
+
"parameters_key": bedrock.CfnAgent.ParameterDetailProperty(
|
|
117
|
+
type="type",
|
|
118
|
+
|
|
119
|
+
# the properties below are optional
|
|
120
|
+
description="description",
|
|
121
|
+
required=False
|
|
122
|
+
)
|
|
123
|
+
}
|
|
124
|
+
)]
|
|
125
|
+
),
|
|
108
126
|
parent_action_group_signature="parentActionGroupSignature",
|
|
109
127
|
skip_resource_in_use_check_on_delete=False
|
|
110
128
|
)],
|
|
@@ -187,7 +205,7 @@ class CfnAgent(
|
|
|
187
205
|
:param prompt_override_configuration: Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see `Advanced prompts <https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html>`_ .
|
|
188
206
|
:param skip_resource_in_use_check_on_delete: Specifies whether to delete the resource even if it's in use. By default, this value is ``false`` . Default: - false
|
|
189
207
|
:param tags: Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_ - `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
|
|
190
|
-
:param test_alias_tags:
|
|
208
|
+
:param test_alias_tags: Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_ - `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
|
|
191
209
|
'''
|
|
192
210
|
if __debug__:
|
|
193
211
|
type_hints = typing.get_type_hints(_typecheckingstub__facaad57ffe16da42f099d2b7997f3e6fd3b9eba46fd226d8fb5afe286371e74)
|
|
@@ -547,7 +565,10 @@ class CfnAgent(
|
|
|
547
565
|
def test_alias_tags(
|
|
548
566
|
self,
|
|
549
567
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]]:
|
|
550
|
-
'''
|
|
568
|
+
'''Metadata that you can assign to a resource as key-value pairs.
|
|
569
|
+
|
|
570
|
+
For more information, see the following resources:.
|
|
571
|
+
'''
|
|
551
572
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]], jsii.get(self, "testAliasTags"))
|
|
552
573
|
|
|
553
574
|
@test_alias_tags.setter
|
|
@@ -644,12 +665,18 @@ class CfnAgent(
|
|
|
644
665
|
@jsii.data_type(
|
|
645
666
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.ActionGroupExecutorProperty",
|
|
646
667
|
jsii_struct_bases=[],
|
|
647
|
-
name_mapping={"lambda_": "lambda"},
|
|
668
|
+
name_mapping={"custom_control": "customControl", "lambda_": "lambda"},
|
|
648
669
|
)
|
|
649
670
|
class ActionGroupExecutorProperty:
|
|
650
|
-
def __init__(
|
|
651
|
-
|
|
671
|
+
def __init__(
|
|
672
|
+
self,
|
|
673
|
+
*,
|
|
674
|
+
custom_control: typing.Optional[builtins.str] = None,
|
|
675
|
+
lambda_: typing.Optional[builtins.str] = None,
|
|
676
|
+
) -> None:
|
|
677
|
+
'''Contains details about the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
|
|
652
678
|
|
|
679
|
+
:param custom_control: To return the action group invocation results directly in the ``InvokeAgent`` response, specify ``RETURN_CONTROL`` .
|
|
653
680
|
:param lambda_: The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.
|
|
654
681
|
|
|
655
682
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-actiongroupexecutor.html
|
|
@@ -662,25 +689,37 @@ class CfnAgent(
|
|
|
662
689
|
from aws_cdk import aws_bedrock as bedrock
|
|
663
690
|
|
|
664
691
|
action_group_executor_property = bedrock.CfnAgent.ActionGroupExecutorProperty(
|
|
692
|
+
custom_control="customControl",
|
|
665
693
|
lambda_="lambda"
|
|
666
694
|
)
|
|
667
695
|
'''
|
|
668
696
|
if __debug__:
|
|
669
697
|
type_hints = typing.get_type_hints(_typecheckingstub__27e0c43d5a1e3dda92d710404aea51beb5f30a149322d9ec3e8d354b889735eb)
|
|
698
|
+
check_type(argname="argument custom_control", value=custom_control, expected_type=type_hints["custom_control"])
|
|
670
699
|
check_type(argname="argument lambda_", value=lambda_, expected_type=type_hints["lambda_"])
|
|
671
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
672
|
-
|
|
673
|
-
|
|
700
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
701
|
+
if custom_control is not None:
|
|
702
|
+
self._values["custom_control"] = custom_control
|
|
703
|
+
if lambda_ is not None:
|
|
704
|
+
self._values["lambda_"] = lambda_
|
|
705
|
+
|
|
706
|
+
@builtins.property
|
|
707
|
+
def custom_control(self) -> typing.Optional[builtins.str]:
|
|
708
|
+
'''To return the action group invocation results directly in the ``InvokeAgent`` response, specify ``RETURN_CONTROL`` .
|
|
709
|
+
|
|
710
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-actiongroupexecutor.html#cfn-bedrock-agent-actiongroupexecutor-customcontrol
|
|
711
|
+
'''
|
|
712
|
+
result = self._values.get("custom_control")
|
|
713
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
674
714
|
|
|
675
715
|
@builtins.property
|
|
676
|
-
def lambda_(self) -> builtins.str:
|
|
716
|
+
def lambda_(self) -> typing.Optional[builtins.str]:
|
|
677
717
|
'''The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.
|
|
678
718
|
|
|
679
719
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-actiongroupexecutor.html#cfn-bedrock-agent-actiongroupexecutor-lambda
|
|
680
720
|
'''
|
|
681
721
|
result = self._values.get("lambda_")
|
|
682
|
-
|
|
683
|
-
return typing.cast(builtins.str, result)
|
|
722
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
684
723
|
|
|
685
724
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
686
725
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -702,6 +741,7 @@ class CfnAgent(
|
|
|
702
741
|
"action_group_state": "actionGroupState",
|
|
703
742
|
"api_schema": "apiSchema",
|
|
704
743
|
"description": "description",
|
|
744
|
+
"function_schema": "functionSchema",
|
|
705
745
|
"parent_action_group_signature": "parentActionGroupSignature",
|
|
706
746
|
"skip_resource_in_use_check_on_delete": "skipResourceInUseCheckOnDelete",
|
|
707
747
|
},
|
|
@@ -715,16 +755,18 @@ class CfnAgent(
|
|
|
715
755
|
action_group_state: typing.Optional[builtins.str] = None,
|
|
716
756
|
api_schema: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.APISchemaProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
717
757
|
description: typing.Optional[builtins.str] = None,
|
|
758
|
+
function_schema: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.FunctionSchemaProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
718
759
|
parent_action_group_signature: typing.Optional[builtins.str] = None,
|
|
719
760
|
skip_resource_in_use_check_on_delete: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
720
761
|
) -> None:
|
|
721
762
|
'''Contains details about an action group.
|
|
722
763
|
|
|
723
764
|
:param action_group_name: The name of the action group.
|
|
724
|
-
:param action_group_executor: The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.
|
|
765
|
+
:param action_group_executor: The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
|
|
725
766
|
:param action_group_state: Specifies whether the action group is available for the agent to invoke or not when sending an `InvokeAgent <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html>`_ request.
|
|
726
767
|
:param api_schema: Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or YAML-formatted payload defining the schema. For more information, see `Action group OpenAPI schemas <https://docs.aws.amazon.com/bedrock/latest/userguide/agents-api-schema.html>`_ .
|
|
727
768
|
:param description: The description of the action group.
|
|
769
|
+
:param function_schema: Defines functions that each define parameters that the agent needs to invoke from the user. Each function represents an action in an action group.
|
|
728
770
|
:param parent_action_group_signature: If this field is set as ``AMAZON.UserInput`` , the agent can request the user for additional information when trying to complete a task. The ``description`` , ``apiSchema`` , and ``actionGroupExecutor`` fields must be blank for this action group. During orchestration, if the agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an `Observation <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Observation.html>`_ reprompting the user for more information.
|
|
729
771
|
:param skip_resource_in_use_check_on_delete: Specifies whether to delete the resource even if it's in use. By default, this value is ``false`` . Default: - false
|
|
730
772
|
|
|
@@ -742,6 +784,7 @@ class CfnAgent(
|
|
|
742
784
|
|
|
743
785
|
# the properties below are optional
|
|
744
786
|
action_group_executor=bedrock.CfnAgent.ActionGroupExecutorProperty(
|
|
787
|
+
custom_control="customControl",
|
|
745
788
|
lambda_="lambda"
|
|
746
789
|
),
|
|
747
790
|
action_group_state="actionGroupState",
|
|
@@ -753,6 +796,23 @@ class CfnAgent(
|
|
|
753
796
|
)
|
|
754
797
|
),
|
|
755
798
|
description="description",
|
|
799
|
+
function_schema=bedrock.CfnAgent.FunctionSchemaProperty(
|
|
800
|
+
functions=[bedrock.CfnAgent.FunctionProperty(
|
|
801
|
+
name="name",
|
|
802
|
+
|
|
803
|
+
# the properties below are optional
|
|
804
|
+
description="description",
|
|
805
|
+
parameters={
|
|
806
|
+
"parameters_key": bedrock.CfnAgent.ParameterDetailProperty(
|
|
807
|
+
type="type",
|
|
808
|
+
|
|
809
|
+
# the properties below are optional
|
|
810
|
+
description="description",
|
|
811
|
+
required=False
|
|
812
|
+
)
|
|
813
|
+
}
|
|
814
|
+
)]
|
|
815
|
+
),
|
|
756
816
|
parent_action_group_signature="parentActionGroupSignature",
|
|
757
817
|
skip_resource_in_use_check_on_delete=False
|
|
758
818
|
)
|
|
@@ -764,6 +824,7 @@ class CfnAgent(
|
|
|
764
824
|
check_type(argname="argument action_group_state", value=action_group_state, expected_type=type_hints["action_group_state"])
|
|
765
825
|
check_type(argname="argument api_schema", value=api_schema, expected_type=type_hints["api_schema"])
|
|
766
826
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
827
|
+
check_type(argname="argument function_schema", value=function_schema, expected_type=type_hints["function_schema"])
|
|
767
828
|
check_type(argname="argument parent_action_group_signature", value=parent_action_group_signature, expected_type=type_hints["parent_action_group_signature"])
|
|
768
829
|
check_type(argname="argument skip_resource_in_use_check_on_delete", value=skip_resource_in_use_check_on_delete, expected_type=type_hints["skip_resource_in_use_check_on_delete"])
|
|
769
830
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
@@ -777,6 +838,8 @@ class CfnAgent(
|
|
|
777
838
|
self._values["api_schema"] = api_schema
|
|
778
839
|
if description is not None:
|
|
779
840
|
self._values["description"] = description
|
|
841
|
+
if function_schema is not None:
|
|
842
|
+
self._values["function_schema"] = function_schema
|
|
780
843
|
if parent_action_group_signature is not None:
|
|
781
844
|
self._values["parent_action_group_signature"] = parent_action_group_signature
|
|
782
845
|
if skip_resource_in_use_check_on_delete is not None:
|
|
@@ -796,7 +859,7 @@ class CfnAgent(
|
|
|
796
859
|
def action_group_executor(
|
|
797
860
|
self,
|
|
798
861
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAgent.ActionGroupExecutorProperty"]]:
|
|
799
|
-
'''The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.
|
|
862
|
+
'''The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
|
|
800
863
|
|
|
801
864
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-agentactiongroup.html#cfn-bedrock-agent-agentactiongroup-actiongroupexecutor
|
|
802
865
|
'''
|
|
@@ -834,6 +897,19 @@ class CfnAgent(
|
|
|
834
897
|
result = self._values.get("description")
|
|
835
898
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
836
899
|
|
|
900
|
+
@builtins.property
|
|
901
|
+
def function_schema(
|
|
902
|
+
self,
|
|
903
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAgent.FunctionSchemaProperty"]]:
|
|
904
|
+
'''Defines functions that each define parameters that the agent needs to invoke from the user.
|
|
905
|
+
|
|
906
|
+
Each function represents an action in an action group.
|
|
907
|
+
|
|
908
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-agentactiongroup.html#cfn-bedrock-agent-agentactiongroup-functionschema
|
|
909
|
+
'''
|
|
910
|
+
result = self._values.get("function_schema")
|
|
911
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAgent.FunctionSchemaProperty"]], result)
|
|
912
|
+
|
|
837
913
|
@builtins.property
|
|
838
914
|
def parent_action_group_signature(self) -> typing.Optional[builtins.str]:
|
|
839
915
|
'''If this field is set as ``AMAZON.UserInput`` , the agent can request the user for additional information when trying to complete a task. The ``description`` , ``apiSchema`` , and ``actionGroupExecutor`` fields must be blank for this action group.
|
|
@@ -963,6 +1039,200 @@ class CfnAgent(
|
|
|
963
1039
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
964
1040
|
)
|
|
965
1041
|
|
|
1042
|
+
@jsii.data_type(
|
|
1043
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.FunctionProperty",
|
|
1044
|
+
jsii_struct_bases=[],
|
|
1045
|
+
name_mapping={
|
|
1046
|
+
"name": "name",
|
|
1047
|
+
"description": "description",
|
|
1048
|
+
"parameters": "parameters",
|
|
1049
|
+
},
|
|
1050
|
+
)
|
|
1051
|
+
class FunctionProperty:
|
|
1052
|
+
def __init__(
|
|
1053
|
+
self,
|
|
1054
|
+
*,
|
|
1055
|
+
name: builtins.str,
|
|
1056
|
+
description: typing.Optional[builtins.str] = None,
|
|
1057
|
+
parameters: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.ParameterDetailProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
1058
|
+
) -> None:
|
|
1059
|
+
'''Defines parameters that the agent needs to invoke from the user to complete the function.
|
|
1060
|
+
|
|
1061
|
+
Corresponds to an action in an action group.
|
|
1062
|
+
|
|
1063
|
+
This data type is used in the following API operations:
|
|
1064
|
+
|
|
1065
|
+
- `CreateAgentActionGroup request <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_RequestSyntax>`_
|
|
1066
|
+
- `CreateAgentActionGroup response <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_ResponseSyntax>`_
|
|
1067
|
+
- `UpdateAgentActionGroup request <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_RequestSyntax>`_
|
|
1068
|
+
- `UpdateAgentActionGroup response <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_ResponseSyntax>`_
|
|
1069
|
+
- `GetAgentActionGroup response <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html#API_agent_GetAgentActionGroup_ResponseSyntax>`_
|
|
1070
|
+
|
|
1071
|
+
:param name: A name for the function.
|
|
1072
|
+
:param description: A description of the function and its purpose.
|
|
1073
|
+
:param parameters: The parameters that the agent elicits from the user to fulfill the function.
|
|
1074
|
+
|
|
1075
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-function.html
|
|
1076
|
+
:exampleMetadata: fixture=_generated
|
|
1077
|
+
|
|
1078
|
+
Example::
|
|
1079
|
+
|
|
1080
|
+
# The code below shows an example of how to instantiate this type.
|
|
1081
|
+
# The values are placeholders you should change.
|
|
1082
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
1083
|
+
|
|
1084
|
+
function_property = bedrock.CfnAgent.FunctionProperty(
|
|
1085
|
+
name="name",
|
|
1086
|
+
|
|
1087
|
+
# the properties below are optional
|
|
1088
|
+
description="description",
|
|
1089
|
+
parameters={
|
|
1090
|
+
"parameters_key": bedrock.CfnAgent.ParameterDetailProperty(
|
|
1091
|
+
type="type",
|
|
1092
|
+
|
|
1093
|
+
# the properties below are optional
|
|
1094
|
+
description="description",
|
|
1095
|
+
required=False
|
|
1096
|
+
)
|
|
1097
|
+
}
|
|
1098
|
+
)
|
|
1099
|
+
'''
|
|
1100
|
+
if __debug__:
|
|
1101
|
+
type_hints = typing.get_type_hints(_typecheckingstub__19341a6c1d4ad6e6ceea8110fa1f82a06ec1a28df35e4ccc6cdb16f028b12747)
|
|
1102
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
1103
|
+
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
1104
|
+
check_type(argname="argument parameters", value=parameters, expected_type=type_hints["parameters"])
|
|
1105
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1106
|
+
"name": name,
|
|
1107
|
+
}
|
|
1108
|
+
if description is not None:
|
|
1109
|
+
self._values["description"] = description
|
|
1110
|
+
if parameters is not None:
|
|
1111
|
+
self._values["parameters"] = parameters
|
|
1112
|
+
|
|
1113
|
+
@builtins.property
|
|
1114
|
+
def name(self) -> builtins.str:
|
|
1115
|
+
'''A name for the function.
|
|
1116
|
+
|
|
1117
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-function.html#cfn-bedrock-agent-function-name
|
|
1118
|
+
'''
|
|
1119
|
+
result = self._values.get("name")
|
|
1120
|
+
assert result is not None, "Required property 'name' is missing"
|
|
1121
|
+
return typing.cast(builtins.str, result)
|
|
1122
|
+
|
|
1123
|
+
@builtins.property
|
|
1124
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
1125
|
+
'''A description of the function and its purpose.
|
|
1126
|
+
|
|
1127
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-function.html#cfn-bedrock-agent-function-description
|
|
1128
|
+
'''
|
|
1129
|
+
result = self._values.get("description")
|
|
1130
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1131
|
+
|
|
1132
|
+
@builtins.property
|
|
1133
|
+
def parameters(
|
|
1134
|
+
self,
|
|
1135
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, "CfnAgent.ParameterDetailProperty"]]]]:
|
|
1136
|
+
'''The parameters that the agent elicits from the user to fulfill the function.
|
|
1137
|
+
|
|
1138
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-function.html#cfn-bedrock-agent-function-parameters
|
|
1139
|
+
'''
|
|
1140
|
+
result = self._values.get("parameters")
|
|
1141
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, "CfnAgent.ParameterDetailProperty"]]]], result)
|
|
1142
|
+
|
|
1143
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1144
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1145
|
+
|
|
1146
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1147
|
+
return not (rhs == self)
|
|
1148
|
+
|
|
1149
|
+
def __repr__(self) -> str:
|
|
1150
|
+
return "FunctionProperty(%s)" % ", ".join(
|
|
1151
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1152
|
+
)
|
|
1153
|
+
|
|
1154
|
+
@jsii.data_type(
|
|
1155
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.FunctionSchemaProperty",
|
|
1156
|
+
jsii_struct_bases=[],
|
|
1157
|
+
name_mapping={"functions": "functions"},
|
|
1158
|
+
)
|
|
1159
|
+
class FunctionSchemaProperty:
|
|
1160
|
+
def __init__(
|
|
1161
|
+
self,
|
|
1162
|
+
*,
|
|
1163
|
+
functions: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.FunctionProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
1164
|
+
) -> None:
|
|
1165
|
+
'''Defines functions that each define parameters that the agent needs to invoke from the user.
|
|
1166
|
+
|
|
1167
|
+
Each function represents an action in an action group.
|
|
1168
|
+
|
|
1169
|
+
This data type is used in the following API operations:
|
|
1170
|
+
|
|
1171
|
+
- `CreateAgentActionGroup request <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_RequestSyntax>`_
|
|
1172
|
+
- `CreateAgentActionGroup response <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_ResponseSyntax>`_
|
|
1173
|
+
- `UpdateAgentActionGroup request <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_RequestSyntax>`_
|
|
1174
|
+
- `UpdateAgentActionGroup response <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_ResponseSyntax>`_
|
|
1175
|
+
- `GetAgentActionGroup response <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html#API_agent_GetAgentActionGroup_ResponseSyntax>`_
|
|
1176
|
+
|
|
1177
|
+
:param functions: A list of functions that each define an action in the action group.
|
|
1178
|
+
|
|
1179
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-functionschema.html
|
|
1180
|
+
:exampleMetadata: fixture=_generated
|
|
1181
|
+
|
|
1182
|
+
Example::
|
|
1183
|
+
|
|
1184
|
+
# The code below shows an example of how to instantiate this type.
|
|
1185
|
+
# The values are placeholders you should change.
|
|
1186
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
1187
|
+
|
|
1188
|
+
function_schema_property = bedrock.CfnAgent.FunctionSchemaProperty(
|
|
1189
|
+
functions=[bedrock.CfnAgent.FunctionProperty(
|
|
1190
|
+
name="name",
|
|
1191
|
+
|
|
1192
|
+
# the properties below are optional
|
|
1193
|
+
description="description",
|
|
1194
|
+
parameters={
|
|
1195
|
+
"parameters_key": bedrock.CfnAgent.ParameterDetailProperty(
|
|
1196
|
+
type="type",
|
|
1197
|
+
|
|
1198
|
+
# the properties below are optional
|
|
1199
|
+
description="description",
|
|
1200
|
+
required=False
|
|
1201
|
+
)
|
|
1202
|
+
}
|
|
1203
|
+
)]
|
|
1204
|
+
)
|
|
1205
|
+
'''
|
|
1206
|
+
if __debug__:
|
|
1207
|
+
type_hints = typing.get_type_hints(_typecheckingstub__90c954c5127bf68b4aecb34d9f9ade65e40a4db12d624a80f89415c2de263971)
|
|
1208
|
+
check_type(argname="argument functions", value=functions, expected_type=type_hints["functions"])
|
|
1209
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1210
|
+
"functions": functions,
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
@builtins.property
|
|
1214
|
+
def functions(
|
|
1215
|
+
self,
|
|
1216
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAgent.FunctionProperty"]]]:
|
|
1217
|
+
'''A list of functions that each define an action in the action group.
|
|
1218
|
+
|
|
1219
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-functionschema.html#cfn-bedrock-agent-functionschema-functions
|
|
1220
|
+
'''
|
|
1221
|
+
result = self._values.get("functions")
|
|
1222
|
+
assert result is not None, "Required property 'functions' is missing"
|
|
1223
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAgent.FunctionProperty"]]], result)
|
|
1224
|
+
|
|
1225
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1226
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1227
|
+
|
|
1228
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1229
|
+
return not (rhs == self)
|
|
1230
|
+
|
|
1231
|
+
def __repr__(self) -> str:
|
|
1232
|
+
return "FunctionSchemaProperty(%s)" % ", ".join(
|
|
1233
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1234
|
+
)
|
|
1235
|
+
|
|
966
1236
|
@jsii.data_type(
|
|
967
1237
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.InferenceConfigurationProperty",
|
|
968
1238
|
jsii_struct_bases=[],
|
|
@@ -1094,6 +1364,110 @@ class CfnAgent(
|
|
|
1094
1364
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
1095
1365
|
)
|
|
1096
1366
|
|
|
1367
|
+
@jsii.data_type(
|
|
1368
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.ParameterDetailProperty",
|
|
1369
|
+
jsii_struct_bases=[],
|
|
1370
|
+
name_mapping={
|
|
1371
|
+
"type": "type",
|
|
1372
|
+
"description": "description",
|
|
1373
|
+
"required": "required",
|
|
1374
|
+
},
|
|
1375
|
+
)
|
|
1376
|
+
class ParameterDetailProperty:
|
|
1377
|
+
def __init__(
|
|
1378
|
+
self,
|
|
1379
|
+
*,
|
|
1380
|
+
type: builtins.str,
|
|
1381
|
+
description: typing.Optional[builtins.str] = None,
|
|
1382
|
+
required: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
1383
|
+
) -> None:
|
|
1384
|
+
'''Contains details about a parameter in a function for an action group.
|
|
1385
|
+
|
|
1386
|
+
This data type is used in the following API operations:
|
|
1387
|
+
|
|
1388
|
+
- `CreateAgentActionGroup request <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_RequestSyntax>`_
|
|
1389
|
+
- `CreateAgentActionGroup response <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_ResponseSyntax>`_
|
|
1390
|
+
- `UpdateAgentActionGroup request <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_RequestSyntax>`_
|
|
1391
|
+
- `UpdateAgentActionGroup response <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_ResponseSyntax>`_
|
|
1392
|
+
- `GetAgentActionGroup response <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html#API_agent_GetAgentActionGroup_ResponseSyntax>`_
|
|
1393
|
+
|
|
1394
|
+
:param type: The data type of the parameter.
|
|
1395
|
+
:param description: A description of the parameter. Helps the foundation model determine how to elicit the parameters from the user.
|
|
1396
|
+
:param required: Whether the parameter is required for the agent to complete the function for action group invocation.
|
|
1397
|
+
|
|
1398
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-parameterdetail.html
|
|
1399
|
+
:exampleMetadata: fixture=_generated
|
|
1400
|
+
|
|
1401
|
+
Example::
|
|
1402
|
+
|
|
1403
|
+
# The code below shows an example of how to instantiate this type.
|
|
1404
|
+
# The values are placeholders you should change.
|
|
1405
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
1406
|
+
|
|
1407
|
+
parameter_detail_property = bedrock.CfnAgent.ParameterDetailProperty(
|
|
1408
|
+
type="type",
|
|
1409
|
+
|
|
1410
|
+
# the properties below are optional
|
|
1411
|
+
description="description",
|
|
1412
|
+
required=False
|
|
1413
|
+
)
|
|
1414
|
+
'''
|
|
1415
|
+
if __debug__:
|
|
1416
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ed93c304b05f6a676428d620999acc5f22bf1cc1920ab4160039feccf941e790)
|
|
1417
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
1418
|
+
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
1419
|
+
check_type(argname="argument required", value=required, expected_type=type_hints["required"])
|
|
1420
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1421
|
+
"type": type,
|
|
1422
|
+
}
|
|
1423
|
+
if description is not None:
|
|
1424
|
+
self._values["description"] = description
|
|
1425
|
+
if required is not None:
|
|
1426
|
+
self._values["required"] = required
|
|
1427
|
+
|
|
1428
|
+
@builtins.property
|
|
1429
|
+
def type(self) -> builtins.str:
|
|
1430
|
+
'''The data type of the parameter.
|
|
1431
|
+
|
|
1432
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-parameterdetail.html#cfn-bedrock-agent-parameterdetail-type
|
|
1433
|
+
'''
|
|
1434
|
+
result = self._values.get("type")
|
|
1435
|
+
assert result is not None, "Required property 'type' is missing"
|
|
1436
|
+
return typing.cast(builtins.str, result)
|
|
1437
|
+
|
|
1438
|
+
@builtins.property
|
|
1439
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
1440
|
+
'''A description of the parameter.
|
|
1441
|
+
|
|
1442
|
+
Helps the foundation model determine how to elicit the parameters from the user.
|
|
1443
|
+
|
|
1444
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-parameterdetail.html#cfn-bedrock-agent-parameterdetail-description
|
|
1445
|
+
'''
|
|
1446
|
+
result = self._values.get("description")
|
|
1447
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1448
|
+
|
|
1449
|
+
@builtins.property
|
|
1450
|
+
def required(
|
|
1451
|
+
self,
|
|
1452
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
1453
|
+
'''Whether the parameter is required for the agent to complete the function for action group invocation.
|
|
1454
|
+
|
|
1455
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-parameterdetail.html#cfn-bedrock-agent-parameterdetail-required
|
|
1456
|
+
'''
|
|
1457
|
+
result = self._values.get("required")
|
|
1458
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
1459
|
+
|
|
1460
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1461
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1462
|
+
|
|
1463
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1464
|
+
return not (rhs == self)
|
|
1465
|
+
|
|
1466
|
+
def __repr__(self) -> str:
|
|
1467
|
+
return "ParameterDetailProperty(%s)" % ", ".join(
|
|
1468
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1469
|
+
)
|
|
1470
|
+
|
|
1097
1471
|
@jsii.data_type(
|
|
1098
1472
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.PromptConfigurationProperty",
|
|
1099
1473
|
jsii_struct_bases=[],
|
|
@@ -2013,7 +2387,7 @@ class CfnAgentProps:
|
|
|
2013
2387
|
:param prompt_override_configuration: Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see `Advanced prompts <https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html>`_ .
|
|
2014
2388
|
:param skip_resource_in_use_check_on_delete: Specifies whether to delete the resource even if it's in use. By default, this value is ``false`` . Default: - false
|
|
2015
2389
|
:param tags: Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_ - `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
|
|
2016
|
-
:param test_alias_tags:
|
|
2390
|
+
:param test_alias_tags: Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_ - `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
|
|
2017
2391
|
|
|
2018
2392
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html
|
|
2019
2393
|
:exampleMetadata: fixture=_generated
|
|
@@ -2033,6 +2407,7 @@ class CfnAgentProps:
|
|
|
2033
2407
|
|
|
2034
2408
|
# the properties below are optional
|
|
2035
2409
|
action_group_executor=bedrock.CfnAgent.ActionGroupExecutorProperty(
|
|
2410
|
+
custom_control="customControl",
|
|
2036
2411
|
lambda_="lambda"
|
|
2037
2412
|
),
|
|
2038
2413
|
action_group_state="actionGroupState",
|
|
@@ -2044,6 +2419,23 @@ class CfnAgentProps:
|
|
|
2044
2419
|
)
|
|
2045
2420
|
),
|
|
2046
2421
|
description="description",
|
|
2422
|
+
function_schema=bedrock.CfnAgent.FunctionSchemaProperty(
|
|
2423
|
+
functions=[bedrock.CfnAgent.FunctionProperty(
|
|
2424
|
+
name="name",
|
|
2425
|
+
|
|
2426
|
+
# the properties below are optional
|
|
2427
|
+
description="description",
|
|
2428
|
+
parameters={
|
|
2429
|
+
"parameters_key": bedrock.CfnAgent.ParameterDetailProperty(
|
|
2430
|
+
type="type",
|
|
2431
|
+
|
|
2432
|
+
# the properties below are optional
|
|
2433
|
+
description="description",
|
|
2434
|
+
required=False
|
|
2435
|
+
)
|
|
2436
|
+
}
|
|
2437
|
+
)]
|
|
2438
|
+
),
|
|
2047
2439
|
parent_action_group_signature="parentActionGroupSignature",
|
|
2048
2440
|
skip_resource_in_use_check_on_delete=False
|
|
2049
2441
|
)],
|
|
@@ -2282,7 +2674,10 @@ class CfnAgentProps:
|
|
|
2282
2674
|
def test_alias_tags(
|
|
2283
2675
|
self,
|
|
2284
2676
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]]:
|
|
2285
|
-
'''
|
|
2677
|
+
'''Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.
|
|
2678
|
+
|
|
2679
|
+
- `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_
|
|
2680
|
+
- `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
|
|
2286
2681
|
|
|
2287
2682
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-testaliastags
|
|
2288
2683
|
'''
|
|
@@ -4654,6 +5049,224 @@ class CfnGuardrailProps:
|
|
|
4654
5049
|
)
|
|
4655
5050
|
|
|
4656
5051
|
|
|
5052
|
+
@jsii.implements(_IInspectable_c2943556)
|
|
5053
|
+
class CfnGuardrailVersion(
|
|
5054
|
+
_CfnResource_9df397a6,
|
|
5055
|
+
metaclass=jsii.JSIIMeta,
|
|
5056
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrailVersion",
|
|
5057
|
+
):
|
|
5058
|
+
'''Creates a version of the guardrail.
|
|
5059
|
+
|
|
5060
|
+
Use this API to create a snapshot of the guardrail when you are satisfied with a configuration, or to compare the configuration with another version.
|
|
5061
|
+
|
|
5062
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrailversion.html
|
|
5063
|
+
:cloudformationResource: AWS::Bedrock::GuardrailVersion
|
|
5064
|
+
:exampleMetadata: fixture=_generated
|
|
5065
|
+
|
|
5066
|
+
Example::
|
|
5067
|
+
|
|
5068
|
+
# The code below shows an example of how to instantiate this type.
|
|
5069
|
+
# The values are placeholders you should change.
|
|
5070
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
5071
|
+
|
|
5072
|
+
cfn_guardrail_version = bedrock.CfnGuardrailVersion(self, "MyCfnGuardrailVersion",
|
|
5073
|
+
guardrail_identifier="guardrailIdentifier",
|
|
5074
|
+
|
|
5075
|
+
# the properties below are optional
|
|
5076
|
+
description="description"
|
|
5077
|
+
)
|
|
5078
|
+
'''
|
|
5079
|
+
|
|
5080
|
+
def __init__(
|
|
5081
|
+
self,
|
|
5082
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
5083
|
+
id: builtins.str,
|
|
5084
|
+
*,
|
|
5085
|
+
guardrail_identifier: builtins.str,
|
|
5086
|
+
description: typing.Optional[builtins.str] = None,
|
|
5087
|
+
) -> None:
|
|
5088
|
+
'''
|
|
5089
|
+
:param scope: Scope in which this resource is defined.
|
|
5090
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
5091
|
+
:param guardrail_identifier: The unique identifier of the guardrail.
|
|
5092
|
+
:param description: A description of the guardrail version.
|
|
5093
|
+
'''
|
|
5094
|
+
if __debug__:
|
|
5095
|
+
type_hints = typing.get_type_hints(_typecheckingstub__36ecf5d129e05ab832991dd99410df6b80a6d92a33a8570a344c4717a5e44b16)
|
|
5096
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
5097
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
5098
|
+
props = CfnGuardrailVersionProps(
|
|
5099
|
+
guardrail_identifier=guardrail_identifier, description=description
|
|
5100
|
+
)
|
|
5101
|
+
|
|
5102
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
5103
|
+
|
|
5104
|
+
@jsii.member(jsii_name="inspect")
|
|
5105
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
5106
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
5107
|
+
|
|
5108
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
5109
|
+
'''
|
|
5110
|
+
if __debug__:
|
|
5111
|
+
type_hints = typing.get_type_hints(_typecheckingstub__bf00971bb28fd265ca5f926200cce45dc3b2a38602e859f65aab2b8b59e8ed0f)
|
|
5112
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
5113
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
5114
|
+
|
|
5115
|
+
@jsii.member(jsii_name="renderProperties")
|
|
5116
|
+
def _render_properties(
|
|
5117
|
+
self,
|
|
5118
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
5119
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
5120
|
+
'''
|
|
5121
|
+
:param props: -
|
|
5122
|
+
'''
|
|
5123
|
+
if __debug__:
|
|
5124
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5da3a6697f5485cd8c5fce8a2feaace7186bfb0918784463961790dd9f701920)
|
|
5125
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
5126
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
5127
|
+
|
|
5128
|
+
@jsii.python.classproperty
|
|
5129
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
5130
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
5131
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
5132
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
5133
|
+
|
|
5134
|
+
@builtins.property
|
|
5135
|
+
@jsii.member(jsii_name="attrGuardrailArn")
|
|
5136
|
+
def attr_guardrail_arn(self) -> builtins.str:
|
|
5137
|
+
'''The ARN of the guardrail that was created.
|
|
5138
|
+
|
|
5139
|
+
:cloudformationAttribute: GuardrailArn
|
|
5140
|
+
'''
|
|
5141
|
+
return typing.cast(builtins.str, jsii.get(self, "attrGuardrailArn"))
|
|
5142
|
+
|
|
5143
|
+
@builtins.property
|
|
5144
|
+
@jsii.member(jsii_name="attrGuardrailId")
|
|
5145
|
+
def attr_guardrail_id(self) -> builtins.str:
|
|
5146
|
+
'''The unique identifier of the guardrail.
|
|
5147
|
+
|
|
5148
|
+
:cloudformationAttribute: GuardrailId
|
|
5149
|
+
'''
|
|
5150
|
+
return typing.cast(builtins.str, jsii.get(self, "attrGuardrailId"))
|
|
5151
|
+
|
|
5152
|
+
@builtins.property
|
|
5153
|
+
@jsii.member(jsii_name="attrVersion")
|
|
5154
|
+
def attr_version(self) -> builtins.str:
|
|
5155
|
+
'''The version of the guardrail.
|
|
5156
|
+
|
|
5157
|
+
:cloudformationAttribute: Version
|
|
5158
|
+
'''
|
|
5159
|
+
return typing.cast(builtins.str, jsii.get(self, "attrVersion"))
|
|
5160
|
+
|
|
5161
|
+
@builtins.property
|
|
5162
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
5163
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
5164
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
5165
|
+
|
|
5166
|
+
@builtins.property
|
|
5167
|
+
@jsii.member(jsii_name="guardrailIdentifier")
|
|
5168
|
+
def guardrail_identifier(self) -> builtins.str:
|
|
5169
|
+
'''The unique identifier of the guardrail.'''
|
|
5170
|
+
return typing.cast(builtins.str, jsii.get(self, "guardrailIdentifier"))
|
|
5171
|
+
|
|
5172
|
+
@guardrail_identifier.setter
|
|
5173
|
+
def guardrail_identifier(self, value: builtins.str) -> None:
|
|
5174
|
+
if __debug__:
|
|
5175
|
+
type_hints = typing.get_type_hints(_typecheckingstub__bb6556b800cb75d7323d4ca6bf95fd228006a7d0d24d63a8932fa69b21daba2b)
|
|
5176
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
5177
|
+
jsii.set(self, "guardrailIdentifier", value)
|
|
5178
|
+
|
|
5179
|
+
@builtins.property
|
|
5180
|
+
@jsii.member(jsii_name="description")
|
|
5181
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
5182
|
+
'''A description of the guardrail version.'''
|
|
5183
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
|
|
5184
|
+
|
|
5185
|
+
@description.setter
|
|
5186
|
+
def description(self, value: typing.Optional[builtins.str]) -> None:
|
|
5187
|
+
if __debug__:
|
|
5188
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ecd63b9edc18f82131a7dcf70341b28d62ff84b82ce14e7e0b84d6b927a52a49)
|
|
5189
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
5190
|
+
jsii.set(self, "description", value)
|
|
5191
|
+
|
|
5192
|
+
|
|
5193
|
+
@jsii.data_type(
|
|
5194
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrailVersionProps",
|
|
5195
|
+
jsii_struct_bases=[],
|
|
5196
|
+
name_mapping={
|
|
5197
|
+
"guardrail_identifier": "guardrailIdentifier",
|
|
5198
|
+
"description": "description",
|
|
5199
|
+
},
|
|
5200
|
+
)
|
|
5201
|
+
class CfnGuardrailVersionProps:
|
|
5202
|
+
def __init__(
|
|
5203
|
+
self,
|
|
5204
|
+
*,
|
|
5205
|
+
guardrail_identifier: builtins.str,
|
|
5206
|
+
description: typing.Optional[builtins.str] = None,
|
|
5207
|
+
) -> None:
|
|
5208
|
+
'''Properties for defining a ``CfnGuardrailVersion``.
|
|
5209
|
+
|
|
5210
|
+
:param guardrail_identifier: The unique identifier of the guardrail.
|
|
5211
|
+
:param description: A description of the guardrail version.
|
|
5212
|
+
|
|
5213
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrailversion.html
|
|
5214
|
+
:exampleMetadata: fixture=_generated
|
|
5215
|
+
|
|
5216
|
+
Example::
|
|
5217
|
+
|
|
5218
|
+
# The code below shows an example of how to instantiate this type.
|
|
5219
|
+
# The values are placeholders you should change.
|
|
5220
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
5221
|
+
|
|
5222
|
+
cfn_guardrail_version_props = bedrock.CfnGuardrailVersionProps(
|
|
5223
|
+
guardrail_identifier="guardrailIdentifier",
|
|
5224
|
+
|
|
5225
|
+
# the properties below are optional
|
|
5226
|
+
description="description"
|
|
5227
|
+
)
|
|
5228
|
+
'''
|
|
5229
|
+
if __debug__:
|
|
5230
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e07f1ed805e6d73c6e83274e605414f148ca0a10b6065c654e3b545023b25f84)
|
|
5231
|
+
check_type(argname="argument guardrail_identifier", value=guardrail_identifier, expected_type=type_hints["guardrail_identifier"])
|
|
5232
|
+
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
5233
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
5234
|
+
"guardrail_identifier": guardrail_identifier,
|
|
5235
|
+
}
|
|
5236
|
+
if description is not None:
|
|
5237
|
+
self._values["description"] = description
|
|
5238
|
+
|
|
5239
|
+
@builtins.property
|
|
5240
|
+
def guardrail_identifier(self) -> builtins.str:
|
|
5241
|
+
'''The unique identifier of the guardrail.
|
|
5242
|
+
|
|
5243
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrailversion.html#cfn-bedrock-guardrailversion-guardrailidentifier
|
|
5244
|
+
'''
|
|
5245
|
+
result = self._values.get("guardrail_identifier")
|
|
5246
|
+
assert result is not None, "Required property 'guardrail_identifier' is missing"
|
|
5247
|
+
return typing.cast(builtins.str, result)
|
|
5248
|
+
|
|
5249
|
+
@builtins.property
|
|
5250
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
5251
|
+
'''A description of the guardrail version.
|
|
5252
|
+
|
|
5253
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrailversion.html#cfn-bedrock-guardrailversion-description
|
|
5254
|
+
'''
|
|
5255
|
+
result = self._values.get("description")
|
|
5256
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
5257
|
+
|
|
5258
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
5259
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
5260
|
+
|
|
5261
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
5262
|
+
return not (rhs == self)
|
|
5263
|
+
|
|
5264
|
+
def __repr__(self) -> str:
|
|
5265
|
+
return "CfnGuardrailVersionProps(%s)" % ", ".join(
|
|
5266
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
5267
|
+
)
|
|
5268
|
+
|
|
5269
|
+
|
|
4657
5270
|
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
4658
5271
|
class CfnKnowledgeBase(
|
|
4659
5272
|
_CfnResource_9df397a6,
|
|
@@ -6590,6 +7203,8 @@ __all__ = [
|
|
|
6590
7203
|
"CfnDataSourceProps",
|
|
6591
7204
|
"CfnGuardrail",
|
|
6592
7205
|
"CfnGuardrailProps",
|
|
7206
|
+
"CfnGuardrailVersion",
|
|
7207
|
+
"CfnGuardrailVersionProps",
|
|
6593
7208
|
"CfnKnowledgeBase",
|
|
6594
7209
|
"CfnKnowledgeBaseProps",
|
|
6595
7210
|
"FoundationModel",
|
|
@@ -6728,7 +7343,8 @@ def _typecheckingstub__537a89983eef4dfdf436d52865dbd27f462f778f0de6c8ec616291815
|
|
|
6728
7343
|
|
|
6729
7344
|
def _typecheckingstub__27e0c43d5a1e3dda92d710404aea51beb5f30a149322d9ec3e8d354b889735eb(
|
|
6730
7345
|
*,
|
|
6731
|
-
|
|
7346
|
+
custom_control: typing.Optional[builtins.str] = None,
|
|
7347
|
+
lambda_: typing.Optional[builtins.str] = None,
|
|
6732
7348
|
) -> None:
|
|
6733
7349
|
"""Type checking stubs"""
|
|
6734
7350
|
pass
|
|
@@ -6740,6 +7356,7 @@ def _typecheckingstub__adb9c2568194cbbe9c081f2a8339eaee9966d82b8c5c5ffbc732275ef
|
|
|
6740
7356
|
action_group_state: typing.Optional[builtins.str] = None,
|
|
6741
7357
|
api_schema: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.APISchemaProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
6742
7358
|
description: typing.Optional[builtins.str] = None,
|
|
7359
|
+
function_schema: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.FunctionSchemaProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
6743
7360
|
parent_action_group_signature: typing.Optional[builtins.str] = None,
|
|
6744
7361
|
skip_resource_in_use_check_on_delete: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
6745
7362
|
) -> None:
|
|
@@ -6755,6 +7372,22 @@ def _typecheckingstub__45f582a007ade3e95453c6c5cd09673a7089ab2673014cc97bc0c1eee
|
|
|
6755
7372
|
"""Type checking stubs"""
|
|
6756
7373
|
pass
|
|
6757
7374
|
|
|
7375
|
+
def _typecheckingstub__19341a6c1d4ad6e6ceea8110fa1f82a06ec1a28df35e4ccc6cdb16f028b12747(
|
|
7376
|
+
*,
|
|
7377
|
+
name: builtins.str,
|
|
7378
|
+
description: typing.Optional[builtins.str] = None,
|
|
7379
|
+
parameters: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.ParameterDetailProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
7380
|
+
) -> None:
|
|
7381
|
+
"""Type checking stubs"""
|
|
7382
|
+
pass
|
|
7383
|
+
|
|
7384
|
+
def _typecheckingstub__90c954c5127bf68b4aecb34d9f9ade65e40a4db12d624a80f89415c2de263971(
|
|
7385
|
+
*,
|
|
7386
|
+
functions: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.FunctionProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
7387
|
+
) -> None:
|
|
7388
|
+
"""Type checking stubs"""
|
|
7389
|
+
pass
|
|
7390
|
+
|
|
6758
7391
|
def _typecheckingstub__0b8b0e306d1a46c4fdcedd77b9e6caf3ca221fe8133fe3ce29c1e5e779cc3189(
|
|
6759
7392
|
*,
|
|
6760
7393
|
maximum_length: typing.Optional[jsii.Number] = None,
|
|
@@ -6766,6 +7399,15 @@ def _typecheckingstub__0b8b0e306d1a46c4fdcedd77b9e6caf3ca221fe8133fe3ce29c1e5e77
|
|
|
6766
7399
|
"""Type checking stubs"""
|
|
6767
7400
|
pass
|
|
6768
7401
|
|
|
7402
|
+
def _typecheckingstub__ed93c304b05f6a676428d620999acc5f22bf1cc1920ab4160039feccf941e790(
|
|
7403
|
+
*,
|
|
7404
|
+
type: builtins.str,
|
|
7405
|
+
description: typing.Optional[builtins.str] = None,
|
|
7406
|
+
required: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
7407
|
+
) -> None:
|
|
7408
|
+
"""Type checking stubs"""
|
|
7409
|
+
pass
|
|
7410
|
+
|
|
6769
7411
|
def _typecheckingstub__072678823f2b5bb708860fe2f54d37c6a24153ba05ec6c798f1cbb1222e7cd7b(
|
|
6770
7412
|
*,
|
|
6771
7413
|
base_prompt_template: typing.Optional[builtins.str] = None,
|
|
@@ -7212,6 +7854,48 @@ def _typecheckingstub__e16800cc7473874d0d58b13a772dade51a596e19ff440f95ad243d236
|
|
|
7212
7854
|
"""Type checking stubs"""
|
|
7213
7855
|
pass
|
|
7214
7856
|
|
|
7857
|
+
def _typecheckingstub__36ecf5d129e05ab832991dd99410df6b80a6d92a33a8570a344c4717a5e44b16(
|
|
7858
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
7859
|
+
id: builtins.str,
|
|
7860
|
+
*,
|
|
7861
|
+
guardrail_identifier: builtins.str,
|
|
7862
|
+
description: typing.Optional[builtins.str] = None,
|
|
7863
|
+
) -> None:
|
|
7864
|
+
"""Type checking stubs"""
|
|
7865
|
+
pass
|
|
7866
|
+
|
|
7867
|
+
def _typecheckingstub__bf00971bb28fd265ca5f926200cce45dc3b2a38602e859f65aab2b8b59e8ed0f(
|
|
7868
|
+
inspector: _TreeInspector_488e0dd5,
|
|
7869
|
+
) -> None:
|
|
7870
|
+
"""Type checking stubs"""
|
|
7871
|
+
pass
|
|
7872
|
+
|
|
7873
|
+
def _typecheckingstub__5da3a6697f5485cd8c5fce8a2feaace7186bfb0918784463961790dd9f701920(
|
|
7874
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
7875
|
+
) -> None:
|
|
7876
|
+
"""Type checking stubs"""
|
|
7877
|
+
pass
|
|
7878
|
+
|
|
7879
|
+
def _typecheckingstub__bb6556b800cb75d7323d4ca6bf95fd228006a7d0d24d63a8932fa69b21daba2b(
|
|
7880
|
+
value: builtins.str,
|
|
7881
|
+
) -> None:
|
|
7882
|
+
"""Type checking stubs"""
|
|
7883
|
+
pass
|
|
7884
|
+
|
|
7885
|
+
def _typecheckingstub__ecd63b9edc18f82131a7dcf70341b28d62ff84b82ce14e7e0b84d6b927a52a49(
|
|
7886
|
+
value: typing.Optional[builtins.str],
|
|
7887
|
+
) -> None:
|
|
7888
|
+
"""Type checking stubs"""
|
|
7889
|
+
pass
|
|
7890
|
+
|
|
7891
|
+
def _typecheckingstub__e07f1ed805e6d73c6e83274e605414f148ca0a10b6065c654e3b545023b25f84(
|
|
7892
|
+
*,
|
|
7893
|
+
guardrail_identifier: builtins.str,
|
|
7894
|
+
description: typing.Optional[builtins.str] = None,
|
|
7895
|
+
) -> None:
|
|
7896
|
+
"""Type checking stubs"""
|
|
7897
|
+
pass
|
|
7898
|
+
|
|
7215
7899
|
def _typecheckingstub__6ef81b8dcbedbd76b5a39a6fd5a967ba49aa887b63aad45e2bc246c96c7abcec(
|
|
7216
7900
|
scope: _constructs_77d1e7e8.Construct,
|
|
7217
7901
|
id: builtins.str,
|