Skip to content
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

Updates from spec version 185.0.0 #2267

Merged
merged 1 commit into from
Sep 20, 2024
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
11 changes: 11 additions & 0 deletions troposphere/amplify.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ class AutoBranchCreationConfig(AWSProperty):
}


class CacheConfig(AWSProperty):
"""
`CacheConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-cacheconfig.html>`__
"""

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


class CustomRule(AWSProperty):
"""
`CustomRule <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-customrule.html>`__
Expand All @@ -78,6 +88,7 @@ class App(AWSObject):
"AutoBranchCreationConfig": (AutoBranchCreationConfig, False),
"BasicAuthConfig": (BasicAuthConfig, False),
"BuildSpec": (str, False),
"CacheConfig": (CacheConfig, False),
"CustomHeaders": (str, False),
"CustomRules": ([CustomRule], False),
"Description": (str, False),
Expand Down
2 changes: 2 additions & 0 deletions troposphere/awslambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ class CodeSigningConfig(AWSObject):
"AllowedPublishers": (AllowedPublishers, True),
"CodeSigningPolicies": (CodeSigningPolicies, False),
"Description": (str, False),
"Tags": (Tags, False),
}


Expand Down Expand Up @@ -274,6 +275,7 @@ class EventSourceMapping(AWSObject):
"SourceAccessConfigurations": ([SourceAccessConfiguration], False),
"StartingPosition": (str, False),
"StartingPositionTimestamp": (double, False),
"Tags": (Tags, False),
"Topics": ([str], False),
"TumblingWindowInSeconds": (integer, False),
}
Expand Down
1 change: 1 addition & 0 deletions troposphere/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ class RestoreTestingPlan(AWSObject):
"RestoreTestingPlanName": (str, True),
"ScheduleExpression": (str, True),
"ScheduleExpressionTimezone": (str, False),
"ScheduleStatus": (str, False),
"StartWindowHours": (integer, False),
"Tags": (Tags, False),
}
Expand Down
1 change: 1 addition & 0 deletions troposphere/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class ComputeEnvironment(AWSObject):
props: PropsDictType = {
"ComputeEnvironmentName": (str, False),
"ComputeResources": (ComputeResources, False),
"Context": (str, False),
"EksConfiguration": (EksConfiguration, False),
"ReplaceComputeEnvironment": (boolean, False),
"ServiceRole": (str, False),
Expand Down
86 changes: 86 additions & 0 deletions troposphere/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,16 @@ class FlowConnection(AWSProperty):
}


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

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


class FlowCondition(AWSProperty):
"""
`FlowCondition <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowcondition.html>`__
Expand Down Expand Up @@ -830,19 +840,84 @@ class PromptFlowNodeConfiguration(AWSProperty):
}


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

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


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

props: PropsDictType = {
"S3": (RetrievalFlowNodeS3Configuration, False),
}


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

props: PropsDictType = {
"ServiceConfiguration": (RetrievalFlowNodeServiceConfiguration, True),
}


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

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


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

props: PropsDictType = {
"S3": (StorageFlowNodeS3Configuration, False),
}


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

props: PropsDictType = {
"ServiceConfiguration": (StorageFlowNodeServiceConfiguration, True),
}


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

props: PropsDictType = {
"Agent": (AgentFlowNodeConfiguration, False),
"Collector": (dict, False),
"Condition": (ConditionFlowNodeConfiguration, False),
"Input": (dict, False),
"Iterator": (dict, False),
"KnowledgeBase": (KnowledgeBaseFlowNodeConfiguration, False),
"LambdaFunction": (LambdaFunctionFlowNodeConfiguration, False),
"Lex": (LexFlowNodeConfiguration, False),
"Output": (dict, False),
"Prompt": (PromptFlowNodeConfiguration, False),
"Retrieval": (RetrievalFlowNodeConfiguration, False),
"Storage": (StorageFlowNodeConfiguration, False),
}


Expand Down Expand Up @@ -1341,6 +1416,7 @@ class PromptVersion(AWSObject):
props: PropsDictType = {
"Description": (str, False),
"PromptArn": (str, True),
"Tags": (dict, False),
}


Expand All @@ -1356,6 +1432,16 @@ class AgentAliasHistoryEvent(AWSProperty):
}


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

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


class TextS3Location(AWSProperty):
"""
`TextS3Location <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-texts3location.html>`__
Expand Down
106 changes: 106 additions & 0 deletions troposphere/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,25 @@
from .validators import boolean, double, integer


class AgentStatus(AWSObject):
"""
`AgentStatus <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html>`__
"""

resource_type = "AWS::Connect::AgentStatus"

props: PropsDictType = {
"Description": (str, False),
"DisplayOrder": (integer, False),
"InstanceArn": (str, True),
"Name": (str, True),
"ResetOrderNumber": (boolean, False),
"State": (str, True),
"Tags": (Tags, False),
"Type": (str, False),
}


class ApprovedOrigin(AWSObject):
"""
`ApprovedOrigin <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-approvedorigin.html>`__
Expand Down Expand Up @@ -801,6 +820,93 @@ class UserHierarchyGroup(AWSObject):
}


class LevelFive(AWSProperty):
"""
`LevelFive <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfive.html>`__
"""

props: PropsDictType = {
"HierarchyLevelArn": (str, False),
"HierarchyLevelId": (str, False),
"Name": (str, True),
}


class LevelFour(AWSProperty):
"""
`LevelFour <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfour.html>`__
"""

props: PropsDictType = {
"HierarchyLevelArn": (str, False),
"HierarchyLevelId": (str, False),
"Name": (str, True),
}


class LevelOne(AWSProperty):
"""
`LevelOne <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelone.html>`__
"""

props: PropsDictType = {
"HierarchyLevelArn": (str, False),
"HierarchyLevelId": (str, False),
"Name": (str, True),
}


class LevelThree(AWSProperty):
"""
`LevelThree <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelthree.html>`__
"""

props: PropsDictType = {
"HierarchyLevelArn": (str, False),
"HierarchyLevelId": (str, False),
"Name": (str, True),
}


class LevelTwo(AWSProperty):
"""
`LevelTwo <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-leveltwo.html>`__
"""

props: PropsDictType = {
"HierarchyLevelArn": (str, False),
"HierarchyLevelId": (str, False),
"Name": (str, True),
}


class UserHierarchyStructureProperty(AWSProperty):
"""
`UserHierarchyStructureProperty <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-userhierarchystructure.html>`__
"""

props: PropsDictType = {
"LevelFive": (LevelFive, False),
"LevelFour": (LevelFour, False),
"LevelOne": (LevelOne, False),
"LevelThree": (LevelThree, False),
"LevelTwo": (LevelTwo, False),
}


class UserHierarchyStructure(AWSObject):
"""
`UserHierarchyStructure <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-userhierarchystructure.html>`__
"""

resource_type = "AWS::Connect::UserHierarchyStructure"

props: PropsDictType = {
"InstanceArn": (str, True),
"UserHierarchyStructure": (UserHierarchyStructureProperty, False),
}


class View(AWSObject):
"""
`View <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-view.html>`__
Expand Down
32 changes: 31 additions & 1 deletion troposphere/datazone.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,44 @@ class Environment(AWSObject):
props: PropsDictType = {
"Description": (str, False),
"DomainIdentifier": (str, True),
"EnvironmentProfileIdentifier": (str, True),
"EnvironmentAccountIdentifier": (str, False),
"EnvironmentAccountRegion": (str, False),
"EnvironmentProfileIdentifier": (str, False),
"EnvironmentRoleArn": (str, False),
"GlossaryTerms": ([str], False),
"Name": (str, True),
"ProjectIdentifier": (str, True),
"UserParameters": ([EnvironmentParameter], False),
}


class AwsConsoleLinkParameters(AWSProperty):
"""
`AwsConsoleLinkParameters <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-environmentactions-awsconsolelinkparameters.html>`__
"""

props: PropsDictType = {
"Uri": (str, False),
}


class EnvironmentActions(AWSObject):
"""
`EnvironmentActions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html>`__
"""

resource_type = "AWS::DataZone::EnvironmentActions"

props: PropsDictType = {
"Description": (str, False),
"DomainIdentifier": (str, False),
"EnvironmentIdentifier": (str, False),
"Identifier": (str, False),
"Name": (str, True),
"Parameters": (AwsConsoleLinkParameters, False),
}


class RegionalParameter(AWSProperty):
"""
`RegionalParameter <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-environmentblueprintconfiguration-regionalparameter.html>`__
Expand Down
2 changes: 1 addition & 1 deletion troposphere/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2939,7 +2939,7 @@ class VPNGateway(AWSObject):

class VPNGatewayRoutePropagation(AWSObject):
"""
`VPNGatewayRoutePropagation <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html>`__
`VPNGatewayRoutePropagation <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpngatewayroutepropagation.html>`__
"""

resource_type = "AWS::EC2::VPNGatewayRoutePropagation"
Expand Down
12 changes: 12 additions & 0 deletions troposphere/elasticloadbalancingv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,17 @@ class Certificate(AWSProperty):
}


class ListenerAttribute(AWSProperty):
"""
`ListenerAttribute <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-listenerattribute.html>`__
"""

props: PropsDictType = {
"Key": (str, False),
"Value": (str, False),
}


class MutualAuthentication(AWSProperty):
"""
`MutualAuthentication <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-mutualauthentication.html>`__
Expand All @@ -183,6 +194,7 @@ class Listener(AWSObject):
"AlpnPolicy": ([str], False),
"Certificates": ([Certificate], False),
"DefaultActions": ([Action], True),
"ListenerAttributes": ([ListenerAttribute], False),
"LoadBalancerArn": (str, True),
"MutualAuthentication": (MutualAuthentication, False),
"Port": (validate_network_port, False),
Expand Down
1 change: 1 addition & 0 deletions troposphere/glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ class Job(AWSObject):
"ExecutionClass": (str, False),
"ExecutionProperty": (ExecutionProperty, False),
"GlueVersion": (str, False),
"JobMode": (str, False),
"LogUri": (str, False),
"MaintenanceWindow": (str, False),
"MaxCapacity": (double, False),
Expand Down
Loading