Skip to content

Commit

Permalink
Fix EC2 and MSK issues from the 91.0.0 spec
Browse files Browse the repository at this point in the history
  • Loading branch information
markpeek committed Oct 12, 2022
1 parent b20900e commit ee2c1a7
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 46 deletions.
4 changes: 4 additions & 0 deletions scripts/patches/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,5 +398,9 @@ def targetgroupconfig_patches():
"path": "/PropertyTypes/AWS::EC2::SpotFleet.SpotFleetRequestConfigData/Properties/LaunchTemplateConfigs/ItemType",
"value": "LaunchTemplateConfigs",
},
{
"op": "remove",
"path": "/PropertyTypes/AWS::EC2::NetworkInsightsAnalysis.AdditionalDetail",
},
]
)
10 changes: 10 additions & 0 deletions scripts/patches/msk.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
patches = [
{
"op": "remove",
"path": "/PropertyTypes/AWS::MSK::ServerlessCluster.ClientAuthentication",
},
{
"op": "remove",
"path": "/PropertyTypes/AWS::MSK::ServerlessCluster.Sasl",
},
]
11 changes: 0 additions & 11 deletions troposphere/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2673,17 +2673,6 @@ class VolumeAttachment(AWSObject):
}


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

props: PropsDictType = {
"AdditionalDetailType": (str, False),
"Component": (AnalysisComponent, False),
}


class EbsBlockDevice(AWSProperty):
"""
`EbsBlockDevice <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-ebsblockdevice.html>`__
Expand Down
73 changes: 38 additions & 35 deletions troposphere/msk.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,23 +100,57 @@ class Iam(AWSProperty):
}


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

props: PropsDictType = {
"Enabled": (boolean, True),
}


class Sasl(AWSProperty):
"""
`Sasl <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-sasl.html>`__
`Sasl <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-sasl.html>`__
"""

props: PropsDictType = {
"Iam": (Iam, True),
"Iam": (Iam, False),
"Scram": (Scram, False),
}


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

props: PropsDictType = {
"CertificateAuthorityArnList": ([str], False),
"Enabled": (boolean, False),
}


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

props: PropsDictType = {
"Enabled": (boolean, True),
}


class ClientAuthentication(AWSProperty):
"""
`ClientAuthentication <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-clientauthentication.html>`__
`ClientAuthentication <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-clientauthentication.html>`__
"""

props: PropsDictType = {
"Sasl": (Sasl, True),
"Sasl": (Sasl, False),
"Tls": (Tls, False),
"Unauthenticated": (Unauthenticated, False),
}


Expand Down Expand Up @@ -322,34 +356,3 @@ class ServerlessCluster(AWSObject):
"Tags": (dict, False),
"VpcConfigs": ([VpcConfig], True),
}


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

props: PropsDictType = {
"Enabled": (boolean, True),
}


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

props: PropsDictType = {
"CertificateAuthorityArnList": ([str], False),
"Enabled": (boolean, False),
}


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

props: PropsDictType = {
"Enabled": (boolean, True),
}

0 comments on commit ee2c1a7

Please sign in to comment.