Skip to content

Commit

Permalink
Updates from spec version 119.0.0 (#2143)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Apr 9, 2023
1 parent 574d2eb commit 2fc7824
Show file tree
Hide file tree
Showing 9 changed files with 209 additions and 18 deletions.
1 change: 1 addition & 0 deletions troposphere/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@ class Host(AWSObject):
props: PropsDictType = {
"AutoPlacement": (str, False),
"AvailabilityZone": (str, True),
"HostMaintenance": (str, False),
"HostRecovery": (str, False),
"InstanceFamily": (str, False),
"InstanceType": (str, False),
Expand Down
6 changes: 3 additions & 3 deletions troposphere/grafana.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ class Workspace(AWSObject):
resource_type = "AWS::Grafana::Workspace"

props: PropsDictType = {
"AccountAccessType": (str, False),
"AuthenticationProviders": ([str], False),
"AccountAccessType": (str, True),
"AuthenticationProviders": ([str], True),
"ClientToken": (str, False),
"DataSources": ([str], False),
"Description": (str, False),
"Name": (str, False),
"NotificationDestinations": ([str], False),
"OrganizationRoleName": (str, False),
"OrganizationalUnits": ([str], False),
"PermissionType": (str, False),
"PermissionType": (str, True),
"RoleArn": (str, False),
"SamlConfiguration": (SamlConfiguration, False),
"StackSetName": (str, False),
Expand Down
72 changes: 72 additions & 0 deletions troposphere/groundstation.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,64 @@ class SocketAddress(AWSProperty):
}


class ConnectionDetails(AWSProperty):
"""
`ConnectionDetails <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-connectiondetails.html>`__
"""

props: PropsDictType = {
"Mtu": (integer, False),
"SocketAddress": (SocketAddress, False),
}


class IntegerRange(AWSProperty):
"""
`IntegerRange <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-integerrange.html>`__
"""

props: PropsDictType = {
"Maximum": (integer, False),
"Minimum": (integer, False),
}


class RangedSocketAddress(AWSProperty):
"""
`RangedSocketAddress <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-rangedsocketaddress.html>`__
"""

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


class RangedConnectionDetails(AWSProperty):
"""
`RangedConnectionDetails <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-rangedconnectiondetails.html>`__
"""

props: PropsDictType = {
"Mtu": (integer, False),
"SocketAddress": (RangedSocketAddress, False),
}


class AwsGroundStationAgentEndpoint(AWSProperty):
"""
`AwsGroundStationAgentEndpoint <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html>`__
"""

props: PropsDictType = {
"AgentStatus": (str, False),
"AuditResults": (str, False),
"EgressAddress": (ConnectionDetails, False),
"IngressAddress": (RangedConnectionDetails, False),
"Name": (str, False),
}


class DataflowEndpoint(AWSProperty):
"""
`DataflowEndpoint <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-dataflowendpoint.html>`__
Expand Down Expand Up @@ -225,6 +283,7 @@ class EndpointDetails(AWSProperty):
"""

props: PropsDictType = {
"AwsGroundStationAgentEndpoint": (AwsGroundStationAgentEndpoint, False),
"Endpoint": (DataflowEndpoint, False),
"SecurityDetails": (SecurityDetails, False),
}
Expand Down Expand Up @@ -256,6 +315,17 @@ class DataflowEdge(AWSProperty):
}


class StreamsKmsKey(AWSProperty):
"""
`StreamsKmsKey <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-missionprofile-streamskmskey.html>`__
"""

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


class MissionProfile(AWSObject):
"""
`MissionProfile <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-missionprofile.html>`__
Expand All @@ -269,6 +339,8 @@ class MissionProfile(AWSObject):
"DataflowEdges": ([DataflowEdge], True),
"MinimumViableContactDurationSeconds": (integer, True),
"Name": (str, True),
"StreamsKmsKey": (StreamsKmsKey, False),
"StreamsKmsRole": (str, False),
"Tags": (Tags, False),
"TrackingConfigArn": (str, True),
}
27 changes: 27 additions & 0 deletions troposphere/iotwireless.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,33 @@ class WirelessDevice(AWSObject):
}


class Sidewalk(AWSProperty):
"""
`Sidewalk <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessdeviceimporttask-sidewalk.html>`__
"""

props: PropsDictType = {
"DeviceCreationFile": (str, False),
"DeviceCreationFileList": ([str], False),
"Role": (str, False),
"SidewalkManufacturingSn": (str, False),
}


class WirelessDeviceImportTask(AWSObject):
"""
`WirelessDeviceImportTask <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotwireless-wirelessdeviceimporttask.html>`__
"""

resource_type = "AWS::IoTWireless::WirelessDeviceImportTask"

props: PropsDictType = {
"DestinationName": (str, True),
"Sidewalk": (Sidewalk, True),
"Tags": (Tags, False),
}


class LoRaWANGateway(AWSProperty):
"""
`LoRaWANGateway <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessgateway-lorawangateway.html>`__
Expand Down
1 change: 0 additions & 1 deletion troposphere/neptune.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class DBCluster(AWSObject):
"EngineVersion": (str, False),
"IamAuthEnabled": (boolean, False),
"KmsKeyId": (str, False),
"Port": (integer, False),
"PreferredBackupWindow": (str, False),
"PreferredMaintenanceWindow": (str, False),
"RestoreToTime": (str, False),
Expand Down
1 change: 1 addition & 0 deletions troposphere/rds.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class DBCluster(AWSObject):
"PreferredMaintenanceWindow": (str, False),
"PubliclyAccessible": (boolean, False),
"ReplicationSourceIdentifier": (str, False),
"RestoreToTime": (str, False),
"RestoreType": (str, False),
"ScalingConfiguration": (ScalingConfiguration, False),
"ServerlessV2ScalingConfiguration": (ServerlessV2ScalingConfiguration, False),
Expand Down
1 change: 1 addition & 0 deletions troposphere/sagemaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,7 @@ class ProductionVariant(AWSProperty):
props: PropsDictType = {
"AcceleratorType": (str, False),
"ContainerStartupHealthCheckTimeoutInSeconds": (integer, False),
"EnableSSMAccess": (boolean, False),
"InitialInstanceCount": (integer, False),
"InitialVariantWeight": (double, True),
"InstanceType": (str, False),
Expand Down
100 changes: 95 additions & 5 deletions troposphere/ssmcontacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
# *** Do not modify - this file is autogenerated ***


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


class ChannelTargetInfo(AWSProperty):
"""
`ChannelTargetInfo <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmcontacts-contact-channeltargetinfo.html>`__
`ChannelTargetInfo <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmcontacts-plan-channeltargetinfo.html>`__
"""

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

class ContactTargetInfo(AWSProperty):
"""
`ContactTargetInfo <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmcontacts-contact-contacttargetinfo.html>`__
`ContactTargetInfo <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmcontacts-plan-contacttargetinfo.html>`__
"""

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

class Targets(AWSProperty):
"""
`Targets <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmcontacts-contact-targets.html>`__
`Targets <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmcontacts-plan-targets.html>`__
"""

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

class Stage(AWSProperty):
"""
`Stage <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmcontacts-contact-stage.html>`__
`Stage <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmcontacts-plan-stage.html>`__
"""

props: PropsDictType = {
Expand Down Expand Up @@ -83,3 +83,93 @@ class ContactChannel(AWSObject):
"ContactId": (str, True),
"DeferActivation": (boolean, False),
}


class Plan(AWSObject):
"""
`Plan <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmcontacts-plan.html>`__
"""

resource_type = "AWS::SSMContacts::Plan"

props: PropsDictType = {
"ContactId": (str, True),
"RotationIds": ([str], False),
"Stages": ([Stage], False),
}


class MonthlySetting(AWSProperty):
"""
`MonthlySetting <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmcontacts-rotation-monthlysetting.html>`__
"""

props: PropsDictType = {
"DayOfMonth": (integer, True),
"HandOffTime": (str, True),
}


class CoverageTime(AWSProperty):
"""
`CoverageTime <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmcontacts-rotation-coveragetime.html>`__
"""

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


class ShiftCoverage(AWSProperty):
"""
`ShiftCoverage <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmcontacts-rotation-shiftcoverage.html>`__
"""

props: PropsDictType = {
"CoverageTimes": ([CoverageTime], True),
"DayOfWeek": (str, True),
}


class WeeklySetting(AWSProperty):
"""
`WeeklySetting <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmcontacts-rotation-weeklysetting.html>`__
"""

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


class RecurrenceSettings(AWSProperty):
"""
`RecurrenceSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmcontacts-rotation-recurrencesettings.html>`__
"""

props: PropsDictType = {
"DailySettings": ([str], False),
"MonthlySettings": ([MonthlySetting], False),
"NumberOfOnCalls": (integer, True),
"RecurrenceMultiplier": (integer, True),
"ShiftCoverages": ([ShiftCoverage], False),
"WeeklySettings": ([WeeklySetting], False),
}


class Rotation(AWSObject):
"""
`Rotation <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmcontacts-rotation.html>`__
"""

resource_type = "AWS::SSMContacts::Rotation"

props: PropsDictType = {
"ContactIds": ([str], True),
"Name": (str, True),
"Recurrence": (RecurrenceSettings, True),
"StartTime": (str, True),
"Tags": (Tags, False),
"TimeZoneId": (str, True),
}
18 changes: 9 additions & 9 deletions troposphere/xray.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@ class SamplingRuleProperty(AWSProperty):

props: PropsDictType = {
"Attributes": (dict, False),
"FixedRate": (double, False),
"HTTPMethod": (str, False),
"Host": (str, False),
"Priority": (integer, False),
"ReservoirSize": (integer, False),
"ResourceARN": (str, False),
"FixedRate": (double, True),
"HTTPMethod": (str, True),
"Host": (str, True),
"Priority": (integer, True),
"ReservoirSize": (integer, True),
"ResourceARN": (str, True),
"RuleARN": (str, False),
"RuleName": (str, False),
"ServiceName": (str, False),
"ServiceType": (str, False),
"URLPath": (str, False),
"ServiceName": (str, True),
"ServiceType": (str, True),
"URLPath": (str, True),
"Version": (integer, False),
}

Expand Down

0 comments on commit 2fc7824

Please sign in to comment.