8000 Updates from spec version 188.1.0 by github-actions[bot] · Pull Request #2281 · cloudtools/troposphere · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Updates from spec version 188.1.0 #2281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions troposphere/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@ class LogicallyAirGappedBackupVault(AWSObject):
"MaxRetentionDays": (integer, True),
"MinRetentionDays": (integer, True),
"Notifications": (NotificationObjectType, False),
"VaultState": (str, False),
"VaultType": (str, False),
}


Expand Down
238 changes: 208 additions & 30 deletions troposphere/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ class PromptInferenceConfiguration(AWSProperty):

class ContentBlock(AWSProperty):
"""
`ContentBlock <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-contentblock.html>`__
`ContentBlock <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-contentblock.html>`__
"""

props: PropsDictType = {
Expand All @@ -816,7 +816,7 @@ class ContentBlock(AWSProperty):

class Message(AWSProperty):
"""
`Message <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-message.html>`__
`Message <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-message.html>`__
"""

props: PropsDictType = {
Expand All @@ -837,7 +837,7 @@ class PromptInputVariable(AWSProperty):

class SystemContentBlock(AWSProperty):
"""
`SystemContentBlock <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-systemcontentblock.html>`__
`SystemContentBlock <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-systemcontentblock.html>`__
"""

props: PropsDictType = {
Expand All @@ -847,7 +847,7 @@ class SystemContentBlock(AWSProperty):

class ToolInputSchema(AWSProperty):
"""
`ToolInputSchema <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolinputschema.html>`__
`ToolInputSchema <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-toolinputschema.html>`__
"""

props: PropsDictType = {
Expand All @@ -857,7 +857,7 @@ class ToolInputSchema(AWSProperty):

class ToolSpecification(AWSProperty):
"""
`ToolSpecification <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolspecification.html>`__
`ToolSpecification <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-toolspecification.html>`__
"""

props: PropsDictType = {
Expand All @@ -869,7 +869,7 @@ class ToolSpecification(AWSProperty):

class Tool(AWSProperty):
"""
`Tool <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-tool.html>`__
`Tool <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-tool.html>`__
"""

props: PropsDictType = {
Expand All @@ -879,7 +879,7 @@ class Tool(AWSProperty):

class SpecificToolChoice(AWSProperty):
"""
`SpecificToolChoice <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-specifictoolchoice.html>`__
`SpecificToolChoice <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-specifictoolchoice.html>`__
"""

props: PropsDictType = {
Expand All @@ -889,7 +889,7 @@ class SpecificToolChoice(AWSProperty):

class ToolChoice(AWSProperty):
"""
`ToolChoice <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html>`__
`ToolChoice <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-toolchoice.html>`__
"""

props: PropsDictType = {
Expand All @@ -901,7 +901,7 @@ class ToolChoice(AWSProperty):

class ToolConfiguration(AWSProperty):
"""
`ToolConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolconfiguration.html>`__
`ToolConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-toolconfiguration.html>`__
"""

props: PropsDictType = {
Expand All @@ -912,7 +912,7 @@ class ToolConfiguration(AWSProperty):

class ChatPromptTemplateConfiguration(AWSProperty):
"""
`ChatPromptTemplateConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-chatprompttemplateconfiguration.html>`__
`ChatPromptTemplateConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-chatprompttemplateconfiguration.html>`__
"""

props: PropsDictType = {
Expand Down Expand Up @@ -1356,6 +1356,182 @@ class KendraKnowledgeBaseConfiguration(AWSProperty):
}


class CuratedQuery(AWSProperty):
"""
`CuratedQuery <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-curatedquery.html>`__
"""

props: PropsDictType = {
"NaturalLanguage": (str, True),
"Sql": (str, True),
}


class QueryGenerationColumn(AWSProperty):
"""
`QueryGenerationColumn <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-querygenerationcolumn.html>`__
"""

props: PropsDictType = {
"Description": (str, False),
"Inclusion": (str, False),
"Name": (str, False),
}


class QueryGenerationTable(AWSProperty):
"""
`QueryGenerationTable <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-querygenerationtable.html>`__
"""

props: PropsDictType = {
"Columns": ([QueryGenerationColumn], False),
"Description": (str, False),
"Inclusion": (str, False),
"Name": (str, True),
}


class QueryGenerationContext(AWSProperty):
"""
`QueryGenerationContext <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-querygenerationcontext.html>`__
"""

props: PropsDictType = {
"CuratedQueries": ([CuratedQuery], False),
"Tables": ([QueryGenerationTable], False),
}


class QueryGenerationConfiguration(AWSProperty):
"""
`QueryGenerationConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-querygenerationconfiguration.html>`__
"""

props: PropsDictType = {
"ExecutionTimeoutSeconds": (integer, False),
"GenerationContext": (QueryGenerationContext, False),
}


class RedshiftProvisionedAuthConfiguration(AWSProperty):
"""
`RedshiftProvisionedAuthConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-redshiftprovisionedauthconfiguration.html>`__
"""

props: PropsDictType = {
"DatabaseUser": (str, False),
"Type": (str, True),
"UsernamePasswordSecretArn": (str, False),
}


class RedshiftProvisionedConfiguration(AWSProperty):
"""
`RedshiftProvisionedConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-redshiftprovisionedconfiguration.html>`__
"""

props: PropsDictType = {
"AuthConfiguration": (RedshiftProvisionedAuthConfiguration, True),
"ClusterIdentifier": (str, True),
}


class RedshiftServerlessAuthConfiguration(AWSProperty):
"""
`RedshiftServerlessAuthConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-redshiftserverlessauthconfiguration.html>`__
"""

props: PropsDictType = {
"Type": (str, True),
"UsernamePasswordSecretArn": (str, False),
}


class RedshiftServerlessConfiguration(AWSProperty):
"""
`RedshiftServerlessConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-redshiftserverlessconfiguration.html>`__
"""

props: PropsDictType = {
"AuthConfiguration": (RedshiftServerlessAuthConfiguration, True),
"WorkgroupArn": (str, True),
}


class RedshiftQueryEngineConfiguration(AWSProperty):
"""
`RedshiftQueryEngineConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-redshiftqueryengineconfiguration.html>`__
"""

props: PropsDictType = {
"ProvisionedConfiguration": (RedshiftProvisionedConfiguration, False),
"ServerlessConfiguration": (RedshiftServerlessConfiguration, False),
"Type": (str, True),
}


class RedshiftQueryEngineAwsDataCatalogStorageConfiguration(AWSProperty):
"""
`RedshiftQueryEngineAwsDataCatalogStorageConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-redshiftqueryengineawsdatacatalogstorageconfiguration.html>`__
"""

props: PropsDictType = {
"TableNames": ([str], True),
}


class RedshiftQueryEngineRedshiftStorageConfiguration(AWSProperty):
"""
`RedshiftQueryEngineRedshiftStorageConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-redshiftqueryengineredshiftstorageconfiguration.html>`__
"""

props: PropsDictType = {
"DatabaseName": (str, True),
}


class RedshiftQueryEngineStorageConfiguration(AWSProperty):
"""
`RedshiftQueryEngineStorageConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-redshiftqueryenginestorageconfiguration.html>`__
"""

props: PropsDictType = {
"AwsDataCatalogConfiguration": (
RedshiftQueryEngineAwsDataCatalogStorageConfiguration,
False,
),
"RedshiftConfiguration": (
RedshiftQueryEngineRedshiftStorageConfiguration,
False,
),
"Type": (str, True),
}


class RedshiftConfiguration(AWSProperty):
"""
`RedshiftConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-redshiftconfiguration.html>`__
"""

props: PropsDictType = {
"QueryEngineConfiguration": (RedshiftQueryEngineConfiguration, True),
"QueryGenerationConfiguration": (QueryGenerationConfiguration, False),
"StorageConfigurations": ([RedshiftQueryEngineStorageConfiguration], True),
}


class SqlKnowledgeBaseConfiguration(AWSProperty):
"""
`SqlKnowledgeBaseConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-sqlknowledgebaseconfiguration.html>`__
"""

props: PropsDictType = {
"RedshiftConfiguration": (RedshiftConfiguration, False),
"Type": (str, True),
}


class BedrockEmbeddingModelConfiguration(AWSProperty):
"""
`BedrockEmbeddingModelConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-bedrockembeddingmodelconfiguration.html>`__
Expand Down Expand Up @@ -1422,6 +1598,7 @@ class KnowledgeBaseConfiguration(AWSProperty):

props: PropsDictType = {
"KendraKnowledgeBaseConfiguration": (KendraKnowledgeBaseConfiguration, False),
"SqlKnowledgeBaseConfiguration": (SqlKnowledgeBaseConfiguration, False),
"Type": (str, True),
"VectorKnowledgeBaseConfiguration": (VectorKnowledgeBaseConfiguration, False),
}
Expand Down Expand Up @@ -1561,12 +1738,33 @@ class KnowledgeBase(AWSObject):
}


class PromptAgentResource(AWSProperty):
"""
`PromptAgentResource <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptagentresource.html>`__
"""

props: PropsDictType = {
"AgentIdentifier": (str, True),
}


class PromptGenAiResource(AWSProperty):
"""
`PromptGenAiResource <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptgenairesource.html>`__
"""

props: PropsDictType = {
"Agent": (PromptAgentResource, True),
}


class PromptVariant(AWSProperty):
"""
`PromptVariant <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html>`__
"""

props: PropsDictType = {
"GenAiResource": (PromptGenAiResource, False),
"InferenceConfiguration": (PromptInferenceConfiguration, False),
"ModelId": (str, False),
"Name": (str, True),
Expand Down Expand Up @@ -1638,26 +1836,6 @@ class InferenceProfileModel(AWSProperty):
}


class PromptAgentResource(AWSProperty):
"""
`PromptAgentResource <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptagentresource.html>`__
"""

props: PropsDictType = {
"AgentIdentifier": (str, True),
}


class PromptGenAiResource(AWSProperty):
"""
`PromptGenAiResource <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptgenairesource.html>`__
"""

props: PropsDictType = {
"Agent": (PromptAgentResource, True),
}


class TextS3Location(AWSProperty):
"""
`TextS3Location <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-texts3location.html>`__
Expand Down
Loading
0