Skip to content

Commit

Permalink
Updates from spec version 173.0.0 (#2242)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 10, 2024
1 parent d8a7b95 commit b42c9d5
Show file tree
Hide file tree
Showing 8 changed files with 337 additions and 10 deletions.
51 changes: 50 additions & 1 deletion troposphere/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,42 @@ class ActionGroupExecutor(AWSProperty):
"""

props: PropsDictType = {
"Lambda": (str, True),
"CustomControl": (str, False),
"Lambda": (str, False),
}


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

props: PropsDictType = {
"Description": (str, False),
"Required": (boolean, False),
"Type": (str, True),
}


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

props: PropsDictType = {
"Description": (str, False),
"Name": (str, True),
"Parameters": (dict, False),
}


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

props: PropsDictType = {
"Functions": ([Function], True),
}


Expand All @@ -53,6 +88,7 @@ class AgentActionGroup(AWSProperty):
"ActionGroupState": (str, False),
"ApiSchema": (APISchema, False),
"Description": (str, False),
"FunctionSchema": (FunctionSchema, False),
"ParentActionGroupSignature": (str, False),
"SkipResourceInUseCheckOnDelete": (boolean, False),
}
Expand Down Expand Up @@ -376,6 +412,19 @@ class Guardrail(AWSObject):
}


class GuardrailVersion(AWSObject):
"""
`GuardrailVersion <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrailversion.html>`__
"""

resource_type = "AWS::Bedrock::GuardrailVersion"

props: PropsDictType = {
"Description": (str, False),
"GuardrailIdentifier": (str, True),
}


class VectorKnowledgeBaseConfiguration(AWSProperty):
"""
`VectorKnowledgeBaseConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html>`__
Expand Down
13 changes: 13 additions & 0 deletions troposphere/budgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,17 @@ class NotificationWithSubscribers(AWSProperty):
}


class ResourceTag(AWSProperty):
"""
`ResourceTag <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budgetsaction-resourcetag.html>`__
"""

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


class Budget(AWSObject):
"""
`Budget <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html>`__
Expand All @@ -136,6 +147,7 @@ class Budget(AWSObject):
props: PropsDictType = {
"Budget": (BudgetData, True),
"NotificationsWithSubscribers": ([NotificationWithSubscribers], False),
"ResourceTags": ([ResourceTag], False),
}


Expand Down Expand Up @@ -224,5 +236,6 @@ class BudgetsAction(AWSObject):
"Definition": (Definition, True),
"ExecutionRoleArn": (str, True),
"NotificationType": (str, True),
"ResourceTags": ([ResourceTag], False),
"Subscribers": ([ActionSubscriber], True),
}
11 changes: 11 additions & 0 deletions troposphere/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -3276,6 +3276,17 @@ class SecurityGroupRule(AWSProperty):
}


class State(AWSProperty):
"""
`State <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-state.html>`__
"""

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


class TransitGatewayRouteTableRoute(AWSProperty):
"""
`TransitGatewayRouteTableRoute <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsanalysis-transitgatewayroutetableroute.html>`__
Expand Down
147 changes: 146 additions & 1 deletion troposphere/mediaconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


from . import AWSObject, AWSProperty, PropsDictType
from .validators import integer
from .validators import double, integer


class BridgeNetworkOutput(AWSProperty):
Expand Down Expand Up @@ -170,6 +170,61 @@ class BridgeSource(AWSObject):
}


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

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


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

props: PropsDictType = {
"ChannelOrder": (str, False),
"Colorimetry": (str, False),
"ExactFramerate": (str, False),
"Par": (str, False),
"Range": (str, False),
"ScanMode": (str, False),
"Tcs": (str, False),
}


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

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


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

props: PropsDictType = {
"Attributes": (MediaStreamAttributes, False),
"ClockRate": (integer, False),
"Description": (str, False),
"Fmt": (integer, False),
"MediaStreamId": (integer, True),
"MediaStreamName": (str, True),
"MediaStreamType": (str, True),
"VideoFormat": (str, False),
}


class Encryption(AWSProperty):
"""
`Encryption <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowsource-encryption.html>`__
Expand Down Expand Up @@ -199,6 +254,39 @@ class GatewayBridgeSource(AWSProperty):
}


class Interface(AWSProperty):
"""
`Interface <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-interface.html>`__
"""

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


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

props: PropsDictType = {
"InputPort": (integer, True),
"Interface": (Interface, True),
}


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

props: PropsDictType = {
"EncodingName": (str, True),
"InputConfigurations": ([InputConfiguration], False),
"MediaStreamName": (str, True),
}


class Source(AWSProperty):
"""
`Source <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-source.html>`__
Expand All @@ -213,6 +301,8 @@ class Source(AWSProperty):
"IngestPort": (integer, False),
"MaxBitrate": (integer, False),
"MaxLatency": (integer, False),
"MaxSyncBuffer": (integer, False),
"MediaStreamSourceConfigurations": ([MediaStreamSourceConfiguration], False),
"MinLatency": (integer, False),
"Name": (str, False),
"Protocol": (str, False),
Expand All @@ -228,6 +318,21 @@ class Source(AWSProperty):
}


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

props: PropsDictType = {
"Name": (str, True),
"NetworkInterfaceIds": ([str], False),
"NetworkInterfaceType": (str, False),
"RoleArn": (str, True),
"SecurityGroupIds": ([str], True),
"SubnetId": (str, True),
}


class Flow(AWSObject):
"""
`Flow <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html>`__
Expand All @@ -237,9 +342,12 @@ class Flow(AWSObject):

props: PropsDictType = {
"AvailabilityZone": (str, False),
"Maintenance": (Maintenance, False),
"MediaStreams": ([MediaStream], False),
"Name": (str, True),
"Source": (Source, True),
"SourceFailoverConfig": (FailoverConfig, False),
"VpcInterfaces": ([VpcInterface], False),
}


Expand Down Expand Up @@ -274,6 +382,42 @@ class FlowOutputEncryption(AWSProperty):
}


class DestinationConfiguration(AWSProperty):
"""
`DestinationConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-destinationconfiguration.html>`__
"""

props: PropsDictType = {
"DestinationIp": (str, True),
"DestinationPort": (integer, True),
"Interface": (Interface, True),
}


class EncodingParameters(AWSProperty):
"""
`EncodingParameters <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-encodingparameters.html>`__
"""

props: PropsDictType = {
"CompressionFactor": (double, True),
"EncoderProfile": (str, False),
}


class MediaStreamOutputConfiguration(AWSProperty):
"""
`MediaStreamOutputConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-mediastreamoutputconfiguration.html>`__
"""

props: PropsDictType = {
"DestinationConfigurations": ([DestinationConfiguration], False),
"EncodingName": (str, True),
"EncodingParameters": (EncodingParameters, False),
"MediaStreamName": (str, True),
}


class FlowOutput(AWSObject):
"""
`FlowOutput <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowoutput.html>`__
Expand All @@ -288,6 +432,7 @@ class FlowOutput(AWSObject):
"Encryption": (FlowOutputEncryption, False),
"FlowArn": (str, True),
"MaxLatency": (integer, False),
"MediaStreamOutputConfigurations": ([MediaStreamOutputConfiguration], False),
"MinLatency": (integer, False),
"Name": (str, False),
"Port": (integer, False),
Expand Down
16 changes: 16 additions & 0 deletions troposphere/neptune.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,19 @@ class DBSubnetGroup(AWSObject):
"SubnetIds": ([str], True),
"Tags": (Tags, False),
}


class EventSubscription(AWSObject):
"""
`EventSubscription <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html>`__
"""

resource_type = "AWS::Neptune::EventSubscription"

props: PropsDictType = {
"Enabled": (boolean, False),
"EventCategories": ([str], False),
"SnsTopicArn": (str, False),
"SourceIds": ([str], False),
"SourceType": (str, False),
}

0 comments on commit b42c9d5

Please sign in to comment.