Skip to content

Commit

Permalink
Automated SDK generation @ aws-cloudformation-user-guide 19dc52cd3f20…
Browse files Browse the repository at this point in the history
…07d6d268b65b739ffb5ebf8c1e76 (#1920)

Automated SDK generation @ aws-cloudformation-user-guide
19dc52cd3f2007d6d268b65b739ffb5ebf8c1e76

No new resources or functions.
  • Loading branch information
pulumi-bot authored Dec 20, 2024
1 parent 11ac7b3 commit 6efbcaf
Show file tree
Hide file tree
Showing 93 changed files with 8,372 additions and 491 deletions.
2 changes: 1 addition & 1 deletion .docs.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d5c4f2b3a13546420e779899f745eab045ae114a
66b7511f59401ec2374398c60cfe4f31e35bb6e6
8 changes: 8 additions & 0 deletions aws-cloudformation-schema/aws-bedrock-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@
},
"Parameters" : {
"$ref" : "#/definitions/ParameterMap"
},
"RequireConfirmation" : {
"$ref" : "#/definitions/RequireConfirmation"
}
},
"required" : [ "Name" ],
Expand Down Expand Up @@ -335,6 +338,11 @@
"description" : "Prompt Type.",
"enum" : [ "PRE_PROCESSING", "ORCHESTRATION", "POST_PROCESSING", "KNOWLEDGE_BASE_RESPONSE_GENERATION" ]
},
"RequireConfirmation" : {
"type" : "string",
"description" : "ENUM to check if action requires user confirmation",
"enum" : [ "ENABLED", "DISABLED" ]
},
"S3Identifier" : {
"type" : "object",
"description" : "The identifier for the S3 resource.",
Expand Down
269 changes: 268 additions & 1 deletion aws-cloudformation-schema/aws-bedrock-prompt.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"PromptTemplateType" : {
"type" : "string",
"description" : "Prompt template type",
"enum" : [ "TEXT" ]
"enum" : [ "TEXT", "CHAT" ]
},
"PromptVariant" : {
"type" : "object",
Expand All @@ -31,6 +31,9 @@
},
"InferenceConfiguration" : {
"$ref" : "#/definitions/PromptInferenceConfiguration"
},
"GenAiResource" : {
"$ref" : "#/definitions/PromptGenAiResource"
}
},
"required" : [ "Name", "TemplateType", "TemplateConfiguration" ],
Expand Down Expand Up @@ -63,6 +66,45 @@
"required" : [ ],
"additionalProperties" : false
},
"ChatPromptTemplateConfiguration" : {
"type" : "object",
"description" : "Configuration for chat prompt template",
"properties" : {
"Messages" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/Message"
},
"minItems" : 0,
"description" : "List of messages for chat prompt template",
"insertionOrder" : true
},
"System" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/SystemContentBlock"
},
"minItems" : 0,
"description" : "Configuration for chat prompt template",
"insertionOrder" : true
},
"ToolConfiguration" : {
"$ref" : "#/definitions/ToolConfiguration"
},
"InputVariables" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/PromptInputVariable"
},
"maxItems" : 5,
"minItems" : 0,
"description" : "List of input variables",
"insertionOrder" : true
}
},
"required" : [ "Messages" ],
"additionalProperties" : false
},
"PromptTemplateConfiguration" : {
"description" : "Prompt template configuration",
"oneOf" : [ {
Expand All @@ -75,6 +117,16 @@
},
"required" : [ "Text" ],
"additionalProperties" : false
}, {
"type" : "object",
"title" : "Chat",
"properties" : {
"Chat" : {
"$ref" : "#/definitions/ChatPromptTemplateConfiguration"
}
},
"required" : [ "Chat" ],
"additionalProperties" : false
} ]
},
"TextS3Location" : {
Expand Down Expand Up @@ -104,6 +156,193 @@
"required" : [ "Bucket", "Key" ],
"additionalProperties" : false
},
"ConversationRole" : {
"type" : "string",
"description" : "Conversation roles for the chat prompt",
"enum" : [ "user", "assistant" ]
},
"ContentBlock" : {
"description" : "Configuration for chat prompt template",
"oneOf" : [ {
"title" : "Text",
"type" : "object",
"properties" : {
"Text" : {
"type" : "string",
"minLength" : 1,
"description" : "Configuration for chat prompt template"
}
},
"required" : [ "Text" ],
"additionalProperties" : false
} ]
},
"SystemContentBlock" : {
"description" : "Configuration for chat prompt template",
"oneOf" : [ {
"title" : "Text",
"type" : "object",
"properties" : {
"Text" : {
"type" : "string",
"minLength" : 1,
"description" : "Configuration for chat prompt template"
}
},
"required" : [ "Text" ],
"additionalProperties" : false
} ]
},
"Message" : {
"type" : "object",
"description" : "Chat prompt Message",
"properties" : {
"Role" : {
"$ref" : "#/definitions/ConversationRole"
},
"Content" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/ContentBlock"
},
"minItems" : 1,
"description" : "List of Content Blocks",
"insertionOrder" : true
}
},
"required" : [ "Role", "Content" ],
"additionalProperties" : false
},
"ToolInputSchema" : {
"description" : "Tool input schema",
"oneOf" : [ {
"type" : "object",
"title" : "Json",
"properties" : {
"Json" : {
"type" : "object"
}
},
"description" : "Tool input schema json",
"required" : [ "Json" ],
"additionalProperties" : false
} ]
},
"ToolSpecification" : {
"type" : "object",
"description" : "Tool specification",
"properties" : {
"Name" : {
"type" : "string",
"pattern" : "^[a-zA-Z][a-zA-Z0-9_]*$",
"minLength" : 1,
"maxLength" : 64,
"description" : "Tool name"
},
"Description" : {
"type" : "string",
"minLength" : 1
},
"InputSchema" : {
"$ref" : "#/definitions/ToolInputSchema"
}
},
"required" : [ "Name", "InputSchema" ],
"additionalProperties" : false
},
"Tool" : {
"description" : "Tool details",
"oneOf" : [ {
"type" : "object",
"title" : "ToolSpec",
"properties" : {
"ToolSpec" : {
"$ref" : "#/definitions/ToolSpecification"
}
},
"required" : [ "ToolSpec" ],
"additionalProperties" : false
} ]
},
"AutoToolChoice" : {
"type" : "object",
"description" : "Auto Tool choice",
"additionalProperties" : false
},
"AnyToolChoice" : {
"type" : "object",
"description" : "Any Tool choice",
"additionalProperties" : false
},
"SpecificToolChoice" : {
"type" : "object",
"description" : "Specific Tool choice",
"properties" : {
"Name" : {
"type" : "string",
"pattern" : "^[a-zA-Z][a-zA-Z0-9_]*$",
"minLength" : 1,
"maxLength" : 64,
"description" : "Tool name"
}
},
"required" : [ "Name" ],
"additionalProperties" : false
},
"ToolChoice" : {
"description" : "Tool choice",
"oneOf" : [ {
"title" : "Auto",
"type" : "object",
"properties" : {
"Auto" : {
"$ref" : "#/definitions/AutoToolChoice"
}
},
"required" : [ "Auto" ],
"additionalProperties" : false
}, {
"title" : "Any",
"type" : "object",
"properties" : {
"Any" : {
"$ref" : "#/definitions/AnyToolChoice"
}
},
"required" : [ "Any" ],
"additionalProperties" : false
}, {
"title" : "Tool",
"type" : "object",
"properties" : {
"Tool" : {
"$ref" : "#/definitions/SpecificToolChoice"
}
},
"required" : [ "Tool" ],
"additionalProperties" : false
} ]
},
"ToolConfiguration" : {
"type" : "object",
"description" : "Tool configuration",
"properties" : {
"Tools" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/Tool"
},
"minItems" : 1,
"description" : "List of Tools",
"insertionOrder" : true
},
"ToolChoice" : {
"$ref" : "#/definitions/ToolChoice"
}
},
"required" : [ "Tools" ],
"additionalProperties" : false
},
"PromptModelInferenceConfiguration" : {
"type" : "object",
"description" : "Prompt model inference configuration",
Expand Down Expand Up @@ -178,6 +417,34 @@
}
},
"additionalProperties" : false
},
"PromptAgentResource" : {
"description" : "Target Agent to invoke with Prompt",
"type" : "object",
"properties" : {
"AgentIdentifier" : {
"type" : "string",
"maxLength" : 2048,
"pattern" : "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:agent-alias/[0-9a-zA-Z]{10}/[0-9a-zA-Z]{10}$",
"description" : "Arn representation of the Agent Alias."
}
},
"required" : [ "AgentIdentifier" ],
"additionalProperties" : false
},
"PromptGenAiResource" : {
"description" : "Target resource to invoke with Prompt",
"oneOf" : [ {
"type" : "object",
"title" : "Agent",
"properties" : {
"Agent" : {
"$ref" : "#/definitions/PromptAgentResource"
}
},
"required" : [ "Agent" ],
"additionalProperties" : false
} ]
}
},
"properties" : {
Expand Down
12 changes: 6 additions & 6 deletions aws-cloudformation-schema/aws-logs-accountpolicy.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"PolicyType" : {
"description" : "Type of the policy.",
"type" : "string",
"enum" : [ "DATA_PROTECTION_POLICY", "SUBSCRIPTION_FILTER_POLICY" ]
"enum" : [ "DATA_PROTECTION_POLICY", "SUBSCRIPTION_FILTER_POLICY", "FIELD_INDEX_POLICY", "TRANSFORMER_POLICY" ]
},
"Scope" : {
"description" : "Scope for policy application",
Expand All @@ -45,19 +45,19 @@
},
"handlers" : {
"create" : {
"permissions" : [ "logs:PutAccountPolicy", "logs:PutDataProtectionPolicy", "logs:DescribeAccountPolicies", "logs:CreateLogDelivery", "s3:REST.PUT.OBJECT", "firehose:TagDeliveryStream", "logs:PutSubscriptionFilter", "logs:DeleteSubscriptionFilter", "iam:PassRole" ]
"permissions" : [ "logs:PutAccountPolicy", "logs:PutIndexPolicy", "logs:PutDataProtectionPolicy", "logs:DescribeAccountPolicies", "logs:CreateLogDelivery", "s3:REST.PUT.OBJECT", "firehose:TagDeliveryStream", "logs:PutSubscriptionFilter", "logs:DeleteSubscriptionFilter", "logs:PutTransformer", "iam:PassRole" ]
},
"read" : {
"permissions" : [ "logs:DescribeAccountPolicies" ]
"permissions" : [ "logs:DescribeAccountPolicies", "logs:GetTransformer" ]
},
"update" : {
"permissions" : [ "logs:PutAccountPolicy", "logs:PutDataProtectionPolicy", "logs:DescribeAccountPolicies", "logs:DeleteAccountPolicy", "logs:DeleteDataProtectionPolicy", "logs:CreateLogDelivery", "logs:PutSubscriptionFilter", "logs:DeleteSubscriptionFilter", "s3:REST.PUT.OBJECT", "firehose:TagDeliveryStream", "iam:PassRole" ]
"permissions" : [ "logs:PutAccountPolicy", "logs:PutIndexPolicy", "logs:PutDataProtectionPolicy", "logs:DescribeAccountPolicies", "logs:DeleteAccountPolicy", "logs:DeleteIndexPolicy", "logs:DeleteDataProtectionPolicy", "logs:CreateLogDelivery", "logs:PutSubscriptionFilter", "logs:DeleteSubscriptionFilter", "logs:PutTransformer", "logs:DeleteTransformer", "s3:REST.PUT.OBJECT", "firehose:TagDeliveryStream", "iam:PassRole" ]
},
"delete" : {
"permissions" : [ "logs:DeleteAccountPolicy", "logs:DeleteDataProtectionPolicy", "logs:DescribeAccountPolicies", "logs:DeleteSubscriptionFilter", "iam:PassRole" ]
"permissions" : [ "logs:DeleteAccountPolicy", "logs:DeleteIndexPolicy", "logs:DeleteDataProtectionPolicy", "logs:DescribeAccountPolicies", "logs:DeleteSubscriptionFilter", "logs:DeleteTransformer", "iam:PassRole" ]
},
"list" : {
"permissions" : [ "logs:DescribeAccountPolicies" ],
"permissions" : [ "logs:DescribeAccountPolicies", "logs:GetTransformer" ],
"handlerSchema" : {
"properties" : {
"PolicyType" : {
Expand Down
Loading

0 comments on commit 6efbcaf

Please sign in to comment.