mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-29 01:42:19 +00:00
Adds litellm/litellm_core_utils/aws_partition.py mapping a region to its AWS partition (aws, aws-cn, aws-us-gov, and the iso partitions), its DNS suffix, and its ARN prefix, and uses it at every AWS host and ARN build site: bedrock (runtime, agent, agentcore, legacy client, batches, files, realtime), sagemaker, polly, secrets manager, s3 log uploads, bedrock passthrough routes, and rag ingestion. ARN detection now accepts arn:aws-cn: and arn:aws-us-gov: prefixes. STS region resolution now falls back to the configured aws_region_name after the aws_sts_endpoint host and the AWS_REGION/AWS_DEFAULT_REGION env vars, so cn and gov role assumption no longer silently signs against us-west-2. A partition sweep test walks every endpoint builder with cn regions and asserts no amazonaws.com host or arn:aws: prefix comes out, plus an AST guard that fails on any new f-string hardcoding either literal.
260 lines
2.9 KiB
JSON
260 lines
2.9 KiB
JSON
{
|
|
"ANN001": {
|
|
"limit": 3014
|
|
},
|
|
"ANN002": {
|
|
"limit": 71
|
|
},
|
|
"ANN003": {
|
|
"limit": 827
|
|
},
|
|
"ANN201": {
|
|
"limit": 2011
|
|
},
|
|
"ANN202": {
|
|
"limit": 847
|
|
},
|
|
"ANN204": {
|
|
"limit": 706
|
|
},
|
|
"ANN205": {
|
|
"limit": 112
|
|
},
|
|
"ANN206": {
|
|
"limit": 133
|
|
},
|
|
"ANN401": {
|
|
"limit": 1153
|
|
},
|
|
"ASYNC230": {
|
|
"limit": 11
|
|
},
|
|
"B004": {
|
|
"limit": 2
|
|
},
|
|
"B006": {
|
|
"limit": 176
|
|
},
|
|
"B008": {
|
|
"limit": 503
|
|
},
|
|
"B009": {
|
|
"limit": 58
|
|
},
|
|
"B010": {
|
|
"limit": 190
|
|
},
|
|
"B018": {
|
|
"limit": 2
|
|
},
|
|
"B019": {
|
|
"limit": 1
|
|
},
|
|
"B021": {
|
|
"limit": 1
|
|
},
|
|
"B026": {
|
|
"limit": 3
|
|
},
|
|
"BLE001": {
|
|
"limit": 2917
|
|
},
|
|
"C401": {
|
|
"limit": 8
|
|
},
|
|
"C404": {
|
|
"limit": 1
|
|
},
|
|
"C405": {
|
|
"limit": 19
|
|
},
|
|
"C408": {
|
|
"limit": 11
|
|
},
|
|
"C414": {
|
|
"limit": 4
|
|
},
|
|
"C419": {
|
|
"limit": 1
|
|
},
|
|
"C901": {
|
|
"limit": 311
|
|
},
|
|
"D419": {
|
|
"limit": 6
|
|
},
|
|
"DTZ001": {
|
|
"limit": 2
|
|
},
|
|
"DTZ003": {
|
|
"limit": 26
|
|
},
|
|
"DTZ005": {
|
|
"limit": 233
|
|
},
|
|
"DTZ006": {
|
|
"limit": 10
|
|
},
|
|
"DTZ007": {
|
|
"limit": 17
|
|
},
|
|
"DTZ011": {
|
|
"limit": 3
|
|
},
|
|
"EXE001": {
|
|
"limit": 4
|
|
},
|
|
"EXE002": {
|
|
"limit": 3
|
|
},
|
|
"F401": {
|
|
"limit": 13
|
|
},
|
|
"LOG015": {
|
|
"limit": 5
|
|
},
|
|
"N999": {
|
|
"limit": 1
|
|
},
|
|
"PERF102": {
|
|
"limit": 27
|
|
},
|
|
"PERF401": {
|
|
"limit": 12
|
|
},
|
|
"PERF403": {
|
|
"limit": 34
|
|
},
|
|
"PIE804": {
|
|
"limit": 18
|
|
},
|
|
"PIE810": {
|
|
"limit": 43
|
|
},
|
|
"PLC0206": {
|
|
"limit": 26
|
|
},
|
|
"PLC0414": {
|
|
"limit": 46
|
|
},
|
|
"PLR0124": {
|
|
"limit": 1
|
|
},
|
|
"PLR0206": {
|
|
"limit": 1
|
|
},
|
|
"PLR1704": {
|
|
"limit": 3
|
|
},
|
|
"PLR1714": {
|
|
"limit": 256
|
|
},
|
|
"PLW0127": {
|
|
"limit": 57
|
|
},
|
|
"PLW0602": {
|
|
"limit": 215
|
|
},
|
|
"PLW0603": {
|
|
"limit": 191
|
|
},
|
|
"PLW1508": {
|
|
"limit": 190
|
|
},
|
|
"PLW1510": {
|
|
"limit": 2
|
|
},
|
|
"PYI036": {
|
|
"limit": 3
|
|
},
|
|
"RET504": {
|
|
"limit": 175
|
|
},
|
|
"RUF012": {
|
|
"limit": 239
|
|
},
|
|
"RUF015": {
|
|
"limit": 8
|
|
},
|
|
"RUF019": {
|
|
"limit": 38
|
|
},
|
|
"RUF046": {
|
|
"limit": 4
|
|
},
|
|
"RUF059": {
|
|
"limit": 66
|
|
},
|
|
"RUF100": {
|
|
"limit": 0
|
|
},
|
|
"S110": {
|
|
"limit": 217
|
|
},
|
|
"S112": {
|
|
"limit": 22
|
|
},
|
|
"SIM101": {
|
|
"limit": 58
|
|
},
|
|
"SIM102": {
|
|
"limit": 317
|
|
},
|
|
"SIM103": {
|
|
"limit": 119
|
|
},
|
|
"SIM113": {
|
|
"limit": 3
|
|
},
|
|
"SIM115": {
|
|
"limit": 2
|
|
},
|
|
"SIM117": {
|
|
"limit": 6
|
|
},
|
|
"SIM201": {
|
|
"limit": 1
|
|
},
|
|
"SIM210": {
|
|
"limit": 8
|
|
},
|
|
"SIM211": {
|
|
"limit": 1
|
|
},
|
|
"SIM222": {
|
|
"limit": 1
|
|
},
|
|
"SIM401": {
|
|
"limit": 11
|
|
},
|
|
"TC004": {
|
|
"limit": 5
|
|
},
|
|
"TID251": {
|
|
"limit": 1201
|
|
},
|
|
"TRY002": {
|
|
"limit": 524
|
|
},
|
|
"TRY004": {
|
|
"limit": 96
|
|
},
|
|
"TRY201": {
|
|
"limit": 405
|
|
},
|
|
"TRY203": {
|
|
"limit": 113
|
|
},
|
|
"TRY300": {
|
|
"limit": 859
|
|
},
|
|
"UP028": {
|
|
"limit": 2
|
|
},
|
|
"UP031": {
|
|
"limit": 2
|
|
},
|
|
"UP036": {
|
|
"limit": 1
|
|
}
|
|
}
|