Skip to content

Commit 926875e

Browse files
authored
add cfn schema fetcher (#3873)
1 parent f202776 commit 926875e

21 files changed

Lines changed: 573463 additions & 1 deletion

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ fetch-schema-data:
6868
# aws-cdk updated where they store the cfn doc json files. See https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/cfnspec/README.md
6969
bin/git_lfs_download.sh "https://raw.githubusercontent.com/cdklabs/awscdk-service-spec/main/sources/CloudFormationDocumentation/CloudFormationDocumentation.json"
7070

71-
curl -o .tmp/cloudformation.schema.json https://raw.githubusercontent.com/awslabs/goformation/master/schema/cloudformation.schema.json
71+
# Generate fresh CloudFormation schema using Python generator
72+
python3 schema_source/cfn_schema_generator.py
7273

7374
update-schema-data:
7475
# Parse docs

requirements-schema.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
requests>=2.25.0

requirements/dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ mypy~=1.10.1
2929
boto3-stubs[appconfig,serverlessrepo]>=1.34.0,<2.0.0
3030
types-PyYAML~=6.0
3131
types-jsonschema~=3.2
32+
types-requests~=2.28

samtranslator/schema/schema.json

Lines changed: 213 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345341,6 +345341,9 @@
345341345341
"markdownDescription": "The configuration for AI Agents of type `ANSWER_RECOMMENDATION` .",
345342345342
"title": "AnswerRecommendationAIAgentConfiguration"
345343345343
},
345344+
"CaseSummarizationAIAgentConfiguration": {
345345+
"$ref": "#/definitions/AWS::Wisdom::AIAgent.CaseSummarizationAIAgentConfiguration"
345346+
},
345344345347
"EmailGenerativeAnswerAIAgentConfiguration": {
345345345348
"$ref": "#/definitions/AWS::Wisdom::AIAgent.EmailGenerativeAnswerAIAgentConfiguration",
345346345349
"markdownDescription": "Configuration for the EMAIL_GENERATIVE_ANSWER AI agent that provides comprehensive knowledge-based answers for customer queries.",
@@ -345361,6 +345364,12 @@
345361345364
"markdownDescription": "The configuration for AI Agents of type `MANUAL_SEARCH` .",
345362345365
"title": "ManualSearchAIAgentConfiguration"
345363345366
},
345367+
"NoteTakingAIAgentConfiguration": {
345368+
"$ref": "#/definitions/AWS::Wisdom::AIAgent.NoteTakingAIAgentConfiguration"
345369+
},
345370+
"OrchestrationAIAgentConfiguration": {
345371+
"$ref": "#/definitions/AWS::Wisdom::AIAgent.OrchestrationAIAgentConfiguration"
345372+
},
345364345373
"SelfServiceAIAgentConfiguration": {
345365345374
"$ref": "#/definitions/AWS::Wisdom::AIAgent.SelfServiceAIAgentConfiguration",
345366345375
"markdownDescription": "The self-service AI agent configuration.",
@@ -345443,6 +345452,21 @@
345443345452
],
345444345453
"type": "object"
345445345454
},
345455+
"AWS::Wisdom::AIAgent.CaseSummarizationAIAgentConfiguration": {
345456+
"additionalProperties": false,
345457+
"properties": {
345458+
"CaseSummarizationAIGuardrailId": {
345459+
"type": "string"
345460+
},
345461+
"CaseSummarizationAIPromptId": {
345462+
"type": "string"
345463+
},
345464+
"Locale": {
345465+
"type": "string"
345466+
}
345467+
},
345468+
"type": "object"
345469+
},
345446345470
"AWS::Wisdom::AIAgent.EmailGenerativeAnswerAIAgentConfiguration": {
345447345471
"additionalProperties": false,
345448345472
"properties": {
@@ -345567,6 +345591,21 @@
345567345591
},
345568345592
"type": "object"
345569345593
},
345594+
"AWS::Wisdom::AIAgent.NoteTakingAIAgentConfiguration": {
345595+
"additionalProperties": false,
345596+
"properties": {
345597+
"Locale": {
345598+
"type": "string"
345599+
},
345600+
"NoteTakingAIGuardrailId": {
345601+
"type": "string"
345602+
},
345603+
"NoteTakingAIPromptId": {
345604+
"type": "string"
345605+
}
345606+
},
345607+
"type": "object"
345608+
},
345570345609
"AWS::Wisdom::AIAgent.OrCondition": {
345571345610
"additionalProperties": false,
345572345611
"properties": {
@@ -345586,6 +345625,33 @@
345586345625
},
345587345626
"type": "object"
345588345627
},
345628+
"AWS::Wisdom::AIAgent.OrchestrationAIAgentConfiguration": {
345629+
"additionalProperties": false,
345630+
"properties": {
345631+
"ConnectInstanceArn": {
345632+
"type": "string"
345633+
},
345634+
"Locale": {
345635+
"type": "string"
345636+
},
345637+
"OrchestrationAIGuardrailId": {
345638+
"type": "string"
345639+
},
345640+
"OrchestrationAIPromptId": {
345641+
"type": "string"
345642+
},
345643+
"ToolConfigurations": {
345644+
"items": {
345645+
"$ref": "#/definitions/AWS::Wisdom::AIAgent.ToolConfiguration"
345646+
},
345647+
"type": "array"
345648+
}
345649+
},
345650+
"required": [
345651+
"OrchestrationAIPromptId"
345652+
],
345653+
"type": "object"
345654+
},
345589345655
"AWS::Wisdom::AIAgent.SelfServiceAIAgentConfiguration": {
345590345656
"additionalProperties": false,
345591345657
"properties": {
@@ -345661,6 +345727,153 @@
345661345727
},
345662345728
"type": "object"
345663345729
},
345730+
"AWS::Wisdom::AIAgent.ToolConfiguration": {
345731+
"additionalProperties": false,
345732+
"properties": {
345733+
"Annotations": {
345734+
"type": "object"
345735+
},
345736+
"Description": {
345737+
"type": "string"
345738+
},
345739+
"InputSchema": {
345740+
"type": "object"
345741+
},
345742+
"Instruction": {
345743+
"$ref": "#/definitions/AWS::Wisdom::AIAgent.ToolInstruction"
345744+
},
345745+
"OutputFilters": {
345746+
"items": {
345747+
"$ref": "#/definitions/AWS::Wisdom::AIAgent.ToolOutputFilter"
345748+
},
345749+
"type": "array"
345750+
},
345751+
"OutputSchema": {
345752+
"type": "object"
345753+
},
345754+
"OverrideInputValues": {
345755+
"items": {
345756+
"$ref": "#/definitions/AWS::Wisdom::AIAgent.ToolOverrideInputValue"
345757+
},
345758+
"type": "array"
345759+
},
345760+
"Title": {
345761+
"type": "string"
345762+
},
345763+
"ToolId": {
345764+
"type": "string"
345765+
},
345766+
"ToolName": {
345767+
"type": "string"
345768+
},
345769+
"ToolType": {
345770+
"type": "string"
345771+
},
345772+
"UserInteractionConfiguration": {
345773+
"$ref": "#/definitions/AWS::Wisdom::AIAgent.UserInteractionConfiguration"
345774+
}
345775+
},
345776+
"required": [
345777+
"ToolName",
345778+
"ToolType"
345779+
],
345780+
"type": "object"
345781+
},
345782+
"AWS::Wisdom::AIAgent.ToolInstruction": {
345783+
"additionalProperties": false,
345784+
"properties": {
345785+
"Examples": {
345786+
"items": {
345787+
"type": "string"
345788+
},
345789+
"type": "array"
345790+
},
345791+
"Instruction": {
345792+
"type": "string"
345793+
}
345794+
},
345795+
"type": "object"
345796+
},
345797+
"AWS::Wisdom::AIAgent.ToolOutputConfiguration": {
345798+
"additionalProperties": false,
345799+
"properties": {
345800+
"OutputVariableNameOverride": {
345801+
"type": "string"
345802+
},
345803+
"SessionDataNamespace": {
345804+
"type": "string"
345805+
}
345806+
},
345807+
"type": "object"
345808+
},
345809+
"AWS::Wisdom::AIAgent.ToolOutputFilter": {
345810+
"additionalProperties": false,
345811+
"properties": {
345812+
"JsonPath": {
345813+
"type": "string"
345814+
},
345815+
"OutputConfiguration": {
345816+
"$ref": "#/definitions/AWS::Wisdom::AIAgent.ToolOutputConfiguration"
345817+
}
345818+
},
345819+
"required": [
345820+
"JsonPath"
345821+
],
345822+
"type": "object"
345823+
},
345824+
"AWS::Wisdom::AIAgent.ToolOverrideConstantInputValue": {
345825+
"additionalProperties": false,
345826+
"properties": {
345827+
"Type": {
345828+
"type": "string"
345829+
},
345830+
"Value": {
345831+
"type": "string"
345832+
}
345833+
},
345834+
"required": [
345835+
"Type",
345836+
"Value"
345837+
],
345838+
"type": "object"
345839+
},
345840+
"AWS::Wisdom::AIAgent.ToolOverrideInputValue": {
345841+
"additionalProperties": false,
345842+
"properties": {
345843+
"JsonPath": {
345844+
"type": "string"
345845+
},
345846+
"Value": {
345847+
"$ref": "#/definitions/AWS::Wisdom::AIAgent.ToolOverrideInputValueConfiguration"
345848+
}
345849+
},
345850+
"required": [
345851+
"JsonPath",
345852+
"Value"
345853+
],
345854+
"type": "object"
345855+
},
345856+
"AWS::Wisdom::AIAgent.ToolOverrideInputValueConfiguration": {
345857+
"additionalProperties": false,
345858+
"properties": {
345859+
"Constant": {
345860+
"$ref": "#/definitions/AWS::Wisdom::AIAgent.ToolOverrideConstantInputValue"
345861+
}
345862+
},
345863+
"required": [
345864+
"Constant"
345865+
],
345866+
"type": "object"
345867+
},
345868+
"AWS::Wisdom::AIAgent.UserInteractionConfiguration": {
345869+
"additionalProperties": false,
345870+
"properties": {
345871+
"IsUserConfirmationRequired": {
345872+
"type": "boolean"
345873+
}
345874+
},
345875+
"type": "object"
345876+
},
345664345877
"AWS::Wisdom::AIAgentVersion": {
345665345878
"additionalProperties": false,
345666345879
"properties": {

0 commit comments

Comments
 (0)