Skip to content

Commit

Permalink
Updates from spec version 165.0.0 (#2230)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Mar 15, 2024
1 parent 982cb38 commit a9583ce
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 5 deletions.
14 changes: 14 additions & 0 deletions troposphere/appconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ class ConfigurationProfile(AWSObject):
}


class DynamicExtensionParameters(AWSProperty):
"""
`DynamicExtensionParameters <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-deployment-dynamicextensionparameters.html>`__
"""

props: PropsDictType = {
"ExtensionReference": (str, False),
"ParameterName": (str, False),
"ParameterValue": (str, False),
}


class Deployment(AWSObject):
"""
`Deployment <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appconfig-deployment.html>`__
Expand All @@ -73,6 +85,7 @@ class Deployment(AWSObject):
"ConfigurationVersion": (str, True),
"DeploymentStrategyId": (str, True),
"Description": (str, False),
"DynamicExtensionParameters": ([DynamicExtensionParameters], False),
"EnvironmentId": (str, True),
"KmsKeyIdentifier": (str, False),
"Tags": (Tags, False),
Expand Down Expand Up @@ -132,6 +145,7 @@ class Parameter(AWSProperty):

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

Expand Down
39 changes: 39 additions & 0 deletions troposphere/applicationinsights.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,40 @@ class Log(AWSProperty):
}


class NetWeaverPrometheusExporter(AWSProperty):
"""
`NetWeaverPrometheusExporter <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-netweaverprometheusexporter.html>`__
"""

props: PropsDictType = {
"InstanceNumbers": ([str], True),
"PrometheusPort": (str, False),
"SAPSID": (str, True),
}


class Process(AWSProperty):
"""
`Process <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-process.html>`__
"""

props: PropsDictType = {
"AlarmMetrics": ([AlarmMetric], True),
"ProcessName": (str, True),
}


class SQLServerPrometheusExporter(AWSProperty):
"""
`SQLServerPrometheusExporter <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-sqlserverprometheusexporter.html>`__
"""

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


class WindowsEvent(AWSProperty):
"""
`WindowsEvent <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-windowsevent.html>`__
Expand All @@ -106,6 +140,9 @@ class ConfigurationDetails(AWSProperty):
"HANAPrometheusExporter": (HANAPrometheusExporter, False),
"JMXPrometheusExporter": (JMXPrometheusExporter, False),
"Logs": ([Log], False),
"NetWeaverPrometheusExporter": (NetWeaverPrometheusExporter, False),
"Processes": ([Process], False),
"SQLServerPrometheusExporter": (SQLServerPrometheusExporter, False),
"WindowsEvents": ([WindowsEvent], False),
}

Expand All @@ -118,6 +155,7 @@ class SubComponentConfigurationDetails(AWSProperty):
props: PropsDictType = {
"AlarmMetrics": ([AlarmMetric], False),
"Logs": ([Log], False),
"Processes": ([Process], False),
"WindowsEvents": ([WindowsEvent], False),
}

Expand Down Expand Up @@ -201,6 +239,7 @@ class Application(AWSObject):
resource_type = "AWS::ApplicationInsights::Application"

props: PropsDictType = {
"AttachMissingPermission": (boolean, False),
"AutoConfigurationEnabled": (boolean, False),
"CWEMonitorEnabled": (boolean, False),
"ComponentMonitoringSettings": ([ComponentMonitoringSetting], False),
Expand Down
14 changes: 14 additions & 0 deletions troposphere/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,19 @@ class ComputeEnvironmentOrder(AWSProperty):
}


class JobStateTimeLimitAction(AWSProperty):
"""
`JobStateTimeLimitAction <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobqueue-jobstatetimelimitaction.html>`__
"""

props: PropsDictType = {
"Action": (str, True),
"MaxTimeSeconds": (integer, True),
"Reason": (str, True),
"State": (str, True),
}


class JobQueue(AWSObject):
"""
`JobQueue <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobqueue.html>`__
Expand All @@ -668,6 +681,7 @@ class JobQueue(AWSObject):
props: PropsDictType = {
"ComputeEnvironmentOrder": ([ComputeEnvironmentOrder], True),
"JobQueueName": (str, False),
"JobStateTimeLimitActions": ([JobStateTimeLimitAction], False),
"Priority": (integer, True),
"SchedulingPolicyArn": (str, False),
"State": (validate_queue_state, False),
Expand Down
1 change: 1 addition & 0 deletions troposphere/codepipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ class Actions(AWSProperty):
"Region": (str, False),
"RoleArn": (str, False),
"RunOrder": (integer, False),
"TimeoutInMinutes": (integer, False),
}


Expand Down
10 changes: 6 additions & 4 deletions troposphere/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ class DHCPOptions(AWSObject):
props: PropsDictType = {
"DomainName": (str, False),
"DomainNameServers": ([str], False),
"Ipv6AddressPreferredLeaseTime": (integer, False),
"NetbiosNameServers": ([str], False),
"NetbiosNodeType": (integer, False),
"NtpServers": ([str], False),
Expand Down Expand Up @@ -2001,7 +2002,7 @@ class RouteTable(AWSObject):

class SecurityGroup(AWSObject):
"""
`SecurityGroup <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html>`__
`SecurityGroup <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-securitygroup.html>`__
"""

resource_type = "AWS::EC2::SecurityGroup"
Expand Down Expand Up @@ -3197,7 +3198,7 @@ class EbsBlockDevice(AWSProperty):

class Egress(AWSProperty):
"""
`Egress <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html>`__
`Egress <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-securitygroup-egress.html>`__
"""

props: PropsDictType = {
Expand All @@ -3208,13 +3209,14 @@ class Egress(AWSProperty):
"DestinationSecurityGroupId": (str, False),
"FromPort": (integer, False),
"IpProtocol": (str, True),
"SourceSecurityGroupId": (str, False),
"ToPort": (integer, False),
}


class Ingress(AWSProperty):
"""
`Ingress <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html>`__
`Ingress <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-securitygroup-ingress.html>`__
"""

props: PropsDictType = {
Expand Down Expand Up @@ -3263,7 +3265,7 @@ class PeeringAttachmentStatus(AWSProperty):

class SecurityGroupRule(AWSProperty):
"""
`SecurityGroupRule <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html>`__
`SecurityGroupRule <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-securitygroup-ingress.html>`__
"""

props: PropsDictType = {
Expand Down
4 changes: 3 additions & 1 deletion troposphere/internetmonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


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


class LocalHealthEventsConfig(AWSProperty):
Expand Down Expand Up @@ -66,7 +66,9 @@ class Monitor(AWSObject):

props: PropsDictType = {
"HealthEventsConfig": (HealthEventsConfig, False),
"IncludeLinkedAccounts": (boolean, False),
"InternetMeasurementsLogDelivery": (InternetMeasurementsLogDelivery, False),
"LinkedAccountId": (str, False),
"MaxCityNetworksToMonitor": (integer, False),
"MonitorName": (str, True),
"Resources": ([str], False),
Expand Down
11 changes: 11 additions & 0 deletions troposphere/msk.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,16 @@ class ConsumerGroupReplication(AWSProperty):
}


class ReplicationStartingPosition(AWSProperty):
"""
`ReplicationStartingPosition <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-replicationstartingposition.html>`__
"""

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


class TopicReplication(AWSProperty):
"""
`TopicReplication <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-topicreplication.html>`__
Expand All @@ -476,6 +486,7 @@ class TopicReplication(AWSProperty):
"CopyAccessControlListsForTopics": (boolean, False),
"CopyTopicConfigurations": (boolean, False),
"DetectAndCopyNewTopics": (boolean, False),
"StartingPosition": (ReplicationStartingPosition, False),
"TopicsToExclude": ([str], False),
"TopicsToReplicate": ([str], True),
}
Expand Down
1 change: 1 addition & 0 deletions troposphere/pinpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ class EmailChannel(AWSObject):
"Enabled": (boolean, False),
"FromAddress": (str, True),
"Identity": (str, True),
"OrchestrationSendingRoleArn": (str, False),
"RoleArn": (str, False),
}

Expand Down

0 comments on commit a9583ce

Please sign in to comment.