cloudtools / troposphere

troposphere - Python library to create AWS CloudFormation descriptions
BSD 2-Clause "Simplified" License
4.93k stars 1.45k forks source link

SSO::PermissionSet InlinePolicy should be a json-string #2146

Open mello7tre opened 1 year ago

mello7tre commented 1 year ago

Hi, as for subject, looking at AWS specification: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-permissionset.html

SSO::PermissionSet InlinePolicy should be a json formatted string. Currently is defined as a dict and in the final template output (yaml) is formatted "like" a yaml "object".

Best solution should be to allow parsing it as dict but to dump it in final template output using json.dumps (dunno if this is possible...)

Regards, Alberto.