擅长:python、mysql、java
<p>我会这样回答的。在</p>
<pre><code>from troposphere import Template, autoscaling
t = Template() # Add the template object as "t"
#Create the Autoscaling object as "asg" within the creation of the object, call the template to make the template format
asg = t.add_resource(autoscaling.ScalingPolicy(
"tintScaleDown1",
AdjustmentType="ChangeInCapacity",
AutoScalingGroupName=Ref(tintASG),
Cooldon="900",
ScalingAdjustment="-1",
))
print(t.to_json())
</code></pre>