|
7 | 7 |
|
8 | 8 |
|
9 | 9 | from . import AWSObject, AWSProperty, PropsDictType, Tags |
10 | | -from .validators import boolean, integer |
| 10 | +from .validators import boolean, double, integer |
11 | 11 |
|
12 | 12 |
|
13 | 13 | class VpcConfig(AWSProperty): |
@@ -83,6 +83,20 @@ class BrowserCustom(AWSObject): |
83 | 83 | } |
84 | 84 |
|
85 | 85 |
|
| 86 | +class BrowserProfile(AWSObject): |
| 87 | + """ |
| 88 | + `BrowserProfile <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-browserprofile.html>`__ |
| 89 | + """ |
| 90 | + |
| 91 | + resource_type = "AWS::BedrockAgentCore::BrowserProfile" |
| 92 | + |
| 93 | + props: PropsDictType = { |
| 94 | + "Description": (str, False), |
| 95 | + "Name": (str, True), |
| 96 | + "Tags": (dict, False), |
| 97 | + } |
| 98 | + |
| 99 | + |
86 | 100 | class CodeInterpreterNetworkConfiguration(AWSProperty): |
87 | 101 | """ |
88 | 102 | `CodeInterpreterNetworkConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-codeinterpretercustom-codeinterpreternetworkconfiguration.html>`__ |
@@ -110,6 +124,112 @@ class CodeInterpreterCustom(AWSObject): |
110 | 124 | } |
111 | 125 |
|
112 | 126 |
|
| 127 | +class InferenceConfiguration(AWSProperty): |
| 128 | + """ |
| 129 | + `InferenceConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-evaluator-inferenceconfiguration.html>`__ |
| 130 | + """ |
| 131 | + |
| 132 | + props: PropsDictType = { |
| 133 | + "MaxTokens": (integer, False), |
| 134 | + "Temperature": (double, False), |
| 135 | + "TopP": (double, False), |
| 136 | + } |
| 137 | + |
| 138 | + |
| 139 | +class BedrockEvaluatorModelConfig(AWSProperty): |
| 140 | + """ |
| 141 | + `BedrockEvaluatorModelConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-evaluator-bedrockevaluatormodelconfig.html>`__ |
| 142 | + """ |
| 143 | + |
| 144 | + props: PropsDictType = { |
| 145 | + "AdditionalModelRequestFields": (dict, False), |
| 146 | + "InferenceConfig": (InferenceConfiguration, False), |
| 147 | + "ModelId": (str, True), |
| 148 | + } |
| 149 | + |
| 150 | + |
| 151 | +class EvaluatorModelConfig(AWSProperty): |
| 152 | + """ |
| 153 | + `EvaluatorModelConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-evaluator-evaluatormodelconfig.html>`__ |
| 154 | + """ |
| 155 | + |
| 156 | + props: PropsDictType = { |
| 157 | + "BedrockEvaluatorModelConfig": (BedrockEvaluatorModelConfig, True), |
| 158 | + } |
| 159 | + |
| 160 | + |
| 161 | +class CategoricalScaleDefinition(AWSProperty): |
| 162 | + """ |
| 163 | + `CategoricalScaleDefinition <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-evaluator-categoricalscaledefinition.html>`__ |
| 164 | + """ |
| 165 | + |
| 166 | + props: PropsDictType = { |
| 167 | + "Definition": (str, True), |
| 168 | + "Label": (str, True), |
| 169 | + } |
| 170 | + |
| 171 | + |
| 172 | +class NumericalScaleDefinition(AWSProperty): |
| 173 | + """ |
| 174 | + `NumericalScaleDefinition <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-evaluator-numericalscaledefinition.html>`__ |
| 175 | + """ |
| 176 | + |
| 177 | + props: PropsDictType = { |
| 178 | + "Definition": (str, True), |
| 179 | + "Label": (str, True), |
| 180 | + "Value": (double, True), |
| 181 | + } |
| 182 | + |
| 183 | + |
| 184 | +class RatingScale(AWSProperty): |
| 185 | + """ |
| 186 | + `RatingScale <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-evaluator-ratingscale.html>`__ |
| 187 | + """ |
| 188 | + |
| 189 | + props: PropsDictType = { |
| 190 | + "Categorical": ([CategoricalScaleDefinition], False), |
| 191 | + "Numerical": ([NumericalScaleDefinition], False), |
| 192 | + } |
| 193 | + |
| 194 | + |
| 195 | +class LlmAsAJudgeEvaluatorConfig(AWSProperty): |
| 196 | + """ |
| 197 | + `LlmAsAJudgeEvaluatorConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-evaluator-llmasajudgeevaluatorconfig.html>`__ |
| 198 | + """ |
| 199 | + |
| 200 | + props: PropsDictType = { |
| 201 | + "Instructions": (str, True), |
| 202 | + "ModelConfig": (EvaluatorModelConfig, True), |
| 203 | + "RatingScale": (RatingScale, True), |
| 204 | + } |
| 205 | + |
| 206 | + |
| 207 | +class EvaluatorConfig(AWSProperty): |
| 208 | + """ |
| 209 | + `EvaluatorConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-evaluator-evaluatorconfig.html>`__ |
| 210 | + """ |
| 211 | + |
| 212 | + props: PropsDictType = { |
| 213 | + "LlmAsAJudge": (LlmAsAJudgeEvaluatorConfig, True), |
| 214 | + } |
| 215 | + |
| 216 | + |
| 217 | +class Evaluator(AWSObject): |
| 218 | + """ |
| 219 | + `Evaluator <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-evaluator.html>`__ |
| 220 | + """ |
| 221 | + |
| 222 | + resource_type = "AWS::BedrockAgentCore::Evaluator" |
| 223 | + |
| 224 | + props: PropsDictType = { |
| 225 | + "Description": (str, False), |
| 226 | + "EvaluatorConfig": (EvaluatorConfig, True), |
| 227 | + "EvaluatorName": (str, True), |
| 228 | + "Level": (str, True), |
| 229 | + "Tags": (Tags, False), |
| 230 | + } |
| 231 | + |
| 232 | + |
113 | 233 | class ClaimMatchValueType(AWSProperty): |
114 | 234 | """ |
115 | 235 | `ClaimMatchValueType <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-runtime-claimmatchvaluetype.html>`__ |
@@ -825,6 +945,162 @@ class Memory(AWSObject): |
825 | 945 | } |
826 | 946 |
|
827 | 947 |
|
| 948 | +class CloudWatchLogsInputConfig(AWSProperty): |
| 949 | + """ |
| 950 | + `CloudWatchLogsInputConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-onlineevaluationconfig-cloudwatchlogsinputconfig.html>`__ |
| 951 | + """ |
| 952 | + |
| 953 | + props: PropsDictType = { |
| 954 | + "LogGroupNames": ([str], True), |
| 955 | + "ServiceNames": ([str], True), |
| 956 | + } |
| 957 | + |
| 958 | + |
| 959 | +class DataSourceConfig(AWSProperty): |
| 960 | + """ |
| 961 | + `DataSourceConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-onlineevaluationconfig-datasourceconfig.html>`__ |
| 962 | + """ |
| 963 | + |
| 964 | + props: PropsDictType = { |
| 965 | + "CloudWatchLogs": (CloudWatchLogsInputConfig, True), |
| 966 | + } |
| 967 | + |
| 968 | + |
| 969 | +class EvaluatorReference(AWSProperty): |
| 970 | + """ |
| 971 | + `EvaluatorReference <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-onlineevaluationconfig-evaluatorreference.html>`__ |
| 972 | + """ |
| 973 | + |
| 974 | + props: PropsDictType = { |
| 975 | + "EvaluatorId": (str, True), |
| 976 | + } |
| 977 | + |
| 978 | + |
| 979 | +class FilterValue(AWSProperty): |
| 980 | + """ |
| 981 | + `FilterValue <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-onlineevaluationconfig-filtervalue.html>`__ |
| 982 | + """ |
| 983 | + |
| 984 | + props: PropsDictType = { |
| 985 | + "BooleanValue": (boolean, False), |
| 986 | + "DoubleValue": (double, False), |
| 987 | + "StringValue": (str, False), |
| 988 | + } |
| 989 | + |
| 990 | + |
| 991 | +class Filter(AWSProperty): |
| 992 | + """ |
| 993 | + `Filter <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-onlineevaluationconfig-filter.html>`__ |
| 994 | + """ |
| 995 | + |
| 996 | + props: PropsDictType = { |
| 997 | + "Key": (str, True), |
| 998 | + "Operator": (str, True), |
| 999 | + "Value": (FilterValue, True), |
| 1000 | + } |
| 1001 | + |
| 1002 | + |
| 1003 | +class SamplingConfig(AWSProperty): |
| 1004 | + """ |
| 1005 | + `SamplingConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-onlineevaluationconfig-samplingconfig.html>`__ |
| 1006 | + """ |
| 1007 | + |
| 1008 | + props: PropsDictType = { |
| 1009 | + "SamplingPercentage": (double, True), |
| 1010 | + } |
| 1011 | + |
| 1012 | + |
| 1013 | +class SessionConfig(AWSProperty): |
| 1014 | + """ |
| 1015 | + `SessionConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-onlineevaluationconfig-sessionconfig.html>`__ |
| 1016 | + """ |
| 1017 | + |
| 1018 | + props: PropsDictType = { |
| 1019 | + "SessionTimeoutMinutes": (integer, True), |
| 1020 | + } |
| 1021 | + |
| 1022 | + |
| 1023 | +class Rule(AWSProperty): |
| 1024 | + """ |
| 1025 | + `Rule <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-onlineevaluationconfig-rule.html>`__ |
| 1026 | + """ |
| 1027 | + |
| 1028 | + props: PropsDictType = { |
| 1029 | + "Filters": ([Filter], False), |
| 1030 | + "SamplingConfig": (SamplingConfig, True), |
| 1031 | + "SessionConfig": (SessionConfig, False), |
| 1032 | + } |
| 1033 | + |
| 1034 | + |
| 1035 | +class OnlineEvaluationConfig(AWSObject): |
| 1036 | + """ |
| 1037 | + `OnlineEvaluationConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-onlineevaluationconfig.html>`__ |
| 1038 | + """ |
| 1039 | + |
| 1040 | + resource_type = "AWS::BedrockAgentCore::OnlineEvaluationConfig" |
| 1041 | + |
| 1042 | + props: PropsDictType = { |
| 1043 | + "DataSourceConfig": (DataSourceConfig, True), |
| 1044 | + "Description": (str, False), |
| 1045 | + "EvaluationExecutionRoleArn": (str, True), |
| 1046 | + "Evaluators": ([EvaluatorReference], True), |
| 1047 | + "OnlineEvaluationConfigName": (str, True), |
| 1048 | + "Rule": (Rule, True), |
| 1049 | + "Tags": (Tags, False), |
| 1050 | + } |
| 1051 | + |
| 1052 | + |
| 1053 | +class CedarPolicy(AWSProperty): |
| 1054 | + """ |
| 1055 | + `CedarPolicy <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-policy-cedarpolicy.html>`__ |
| 1056 | + """ |
| 1057 | + |
| 1058 | + props: PropsDictType = { |
| 1059 | + "Statement": (str, True), |
| 1060 | + } |
| 1061 | + |
| 1062 | + |
| 1063 | +class PolicyDefinition(AWSProperty): |
| 1064 | + """ |
| 1065 | + `PolicyDefinition <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-policy-policydefinition.html>`__ |
| 1066 | + """ |
| 1067 | + |
| 1068 | + props: PropsDictType = { |
| 1069 | + "Cedar": (CedarPolicy, True), |
| 1070 | + } |
| 1071 | + |
| 1072 | + |
| 1073 | +class Policy(AWSObject): |
| 1074 | + """ |
| 1075 | + `Policy <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-policy.html>`__ |
| 1076 | + """ |
| 1077 | + |
| 1078 | + resource_type = "AWS::BedrockAgentCore::Policy" |
| 1079 | + |
| 1080 | + props: PropsDictType = { |
| 1081 | + "Definition": (PolicyDefinition, True), |
| 1082 | + "Description": (str, False), |
| 1083 | + "Name": (str, True), |
| 1084 | + "PolicyEngineId": (str, True), |
| 1085 | + "ValidationMode": (str, False), |
| 1086 | + } |
| 1087 | + |
| 1088 | + |
| 1089 | +class PolicyEngine(AWSObject): |
| 1090 | + """ |
| 1091 | + `PolicyEngine <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-policyengine.html>`__ |
| 1092 | + """ |
| 1093 | + |
| 1094 | + resource_type = "AWS::BedrockAgentCore::PolicyEngine" |
| 1095 | + |
| 1096 | + props: PropsDictType = { |
| 1097 | + "Description": (str, False), |
| 1098 | + "EncryptionKeyArn": (str, False), |
| 1099 | + "Name": (str, True), |
| 1100 | + "Tags": (Tags, False), |
| 1101 | + } |
| 1102 | + |
| 1103 | + |
828 | 1104 | class Code(AWSProperty): |
829 | 1105 | """ |
830 | 1106 | `Code <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-runtime-code.html>`__ |
@@ -952,6 +1228,26 @@ class WorkloadIdentity(AWSObject): |
952 | 1228 | } |
953 | 1229 |
|
954 | 1230 |
|
| 1231 | +class CloudWatchOutputConfig(AWSProperty): |
| 1232 | + """ |
| 1233 | + `CloudWatchOutputConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-onlineevaluationconfig-cloudwatchoutputconfig.html>`__ |
| 1234 | + """ |
| 1235 | + |
| 1236 | + props: PropsDictType = { |
| 1237 | + "LogGroupName": (str, False), |
| 1238 | + } |
| 1239 | + |
| 1240 | + |
| 1241 | +class OutputConfig(AWSProperty): |
| 1242 | + """ |
| 1243 | + `OutputConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-onlineevaluationconfig-outputconfig.html>`__ |
| 1244 | + """ |
| 1245 | + |
| 1246 | + props: PropsDictType = { |
| 1247 | + "CloudWatchConfig": (CloudWatchOutputConfig, False), |
| 1248 | + } |
| 1249 | + |
| 1250 | + |
955 | 1251 | class WorkloadIdentityDetails(AWSProperty): |
956 | 1252 | """ |
957 | 1253 | `WorkloadIdentityDetails <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-runtime-workloadidentitydetails.html>`__ |
|
0 commit comments