<s> from troposphere import Join <EOL> from troposphere import Parameter , Ref , Template <EOL> from troposphere . route53 import RecordSet , RecordSetGroup <EOL> t = Template ( ) <EOL> t . add_description ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> hostedzone = t . add_parameter ( Parameter ( <EOL> "<STR_LIT>" , <EOL> Description = "<STR_LIT>" , <EOL> Type = "<STR_LIT>" , <EOL> ) ) <EOL> myDNSRecord = t . add_resource ( RecordSetGroup ( <EOL> "<STR_LIT>" , <EOL> HostedZoneName = Join ( "<STR_LIT>" , [ Ref ( hostedzone ) , "<STR_LIT:.>" ] ) , <EOL> Comment = "<STR_LIT>" <EOL> "<STR_LIT>" , <EOL> RecordSets = [ <EOL> RecordSet ( <EOL> SetIdentifier = Join ( "<STR_LIT:U+0020>" , [ Ref ( "<STR_LIT>" ) , "<STR_LIT>" ] ) , <EOL> Name = Join ( "<STR_LIT>" , [ Ref ( "<STR_LIT>" ) , "<STR_LIT:.>" , Ref ( "<STR_LIT>" ) , "<STR_LIT:.>" , <EOL> Ref ( hostedzone ) , "<STR_LIT:.>" ] ) , <EOL> Type = "<STR_LIT>" , <EOL> TTL = "<STR_LIT>" , <EOL> ResourceRecords = [ "<STR_LIT>" ] , <EOL> Weight = "<STR_LIT:3>" , <EOL> ) , <EOL> RecordSet ( <EOL> SetIdentifier = Join ( "<STR_LIT:U+0020>" , [ Ref ( "<STR_LIT>" ) , "<STR_LIT>" ] ) , <EOL> Name = Join ( "<STR_LIT>" , [ Ref ( "<STR_LIT>" ) , "<STR_LIT:.>" , Ref ( "<STR_LIT>" ) , "<STR_LIT:.>" , <EOL> Ref ( hostedzone ) , "<STR_LIT:.>" ] ) , <EOL> Type = "<STR_LIT>" , <EOL> TTL = "<STR_LIT>" , <EOL> ResourceRecords = [ "<STR_LIT>" ] , <EOL> Weight = "<STR_LIT:1>" , <EOL> ) , <EOL> ] , <EOL> ) ) <EOL> print ( t . to_json ( ) ) </s>
