File tree Expand file tree Collapse file tree 5 files changed +42
-1
lines changed
Expand file tree Collapse file tree 5 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 1+ 2024-04-17 Version: 2.3.20
2+ - ModifyScalingGroup add ScalingPolicy params.
3+
142024-02-26 Version: 2.3.19
25-ModifyScalingGroup add ScalingPolicy params.
36
Original file line number Diff line number Diff line change 1- __version__ = '2.3.19 '
1+ __version__ = '2.3.20 '
Original file line number Diff line number Diff line change @@ -201,6 +201,20 @@ def get_Affinity(self): # String
201201
202202 def set_Affinity (self , Affinity ): # String
203203 self .add_query_param ('Affinity' , Affinity )
204+ def get_NetworkInterfacess (self ): # RepeatList
205+ return self .get_query_params ().get ('NetworkInterfaces' )
206+
207+ def set_NetworkInterfacess (self , NetworkInterfaces ): # RepeatList
208+ for depth1 in range (len (NetworkInterfaces )):
209+ if NetworkInterfaces [depth1 ].get ('Ipv6AddressCount' ) is not None :
210+ self .add_query_param ('NetworkInterfaces.' + str (depth1 + 1 ) + '.Ipv6AddressCount' , NetworkInterfaces [depth1 ].get ('Ipv6AddressCount' ))
211+ if NetworkInterfaces [depth1 ].get ('InstanceType' ) is not None :
212+ self .add_query_param ('NetworkInterfaces.' + str (depth1 + 1 ) + '.InstanceType' , NetworkInterfaces [depth1 ].get ('InstanceType' ))
213+ if NetworkInterfaces [depth1 ].get ('SecurityGroupIds' ) is not None :
214+ for depth2 in range (len (NetworkInterfaces [depth1 ].get ('SecurityGroupIds' ))):
215+ self .add_query_param ('NetworkInterfaces.' + str (depth1 + 1 ) + '.SecurityGroupIds.' + str (depth2 + 1 ), NetworkInterfaces [depth1 ].get ('SecurityGroupIds' )[depth2 ])
216+ if NetworkInterfaces [depth1 ].get ('NetworkInterfaceTrafficMode' ) is not None :
217+ self .add_query_param ('NetworkInterfaces.' + str (depth1 + 1 ) + '.NetworkInterfaceTrafficMode' , NetworkInterfaces [depth1 ].get ('NetworkInterfaceTrafficMode' ))
204218 def get_ImageId (self ): # String
205219 return self .get_query_params ().get ('ImageId' )
206220
Original file line number Diff line number Diff line change @@ -191,6 +191,20 @@ def get_Affinity(self): # String
191191
192192 def set_Affinity (self , Affinity ): # String
193193 self .add_query_param ('Affinity' , Affinity )
194+ def get_NetworkInterfacess (self ): # RepeatList
195+ return self .get_query_params ().get ('NetworkInterfaces' )
196+
197+ def set_NetworkInterfacess (self , NetworkInterfaces ): # RepeatList
198+ for depth1 in range (len (NetworkInterfaces )):
199+ if NetworkInterfaces [depth1 ].get ('Ipv6AddressCount' ) is not None :
200+ self .add_query_param ('NetworkInterfaces.' + str (depth1 + 1 ) + '.Ipv6AddressCount' , NetworkInterfaces [depth1 ].get ('Ipv6AddressCount' ))
201+ if NetworkInterfaces [depth1 ].get ('InstanceType' ) is not None :
202+ self .add_query_param ('NetworkInterfaces.' + str (depth1 + 1 ) + '.InstanceType' , NetworkInterfaces [depth1 ].get ('InstanceType' ))
203+ if NetworkInterfaces [depth1 ].get ('SecurityGroupIds' ) is not None :
204+ for depth2 in range (len (NetworkInterfaces [depth1 ].get ('SecurityGroupIds' ))):
205+ self .add_query_param ('NetworkInterfaces.' + str (depth1 + 1 ) + '.SecurityGroupIds.' + str (depth2 + 1 ), NetworkInterfaces [depth1 ].get ('SecurityGroupIds' )[depth2 ])
206+ if NetworkInterfaces [depth1 ].get ('NetworkInterfaceTrafficMode' ) is not None :
207+ self .add_query_param ('NetworkInterfaces.' + str (depth1 + 1 ) + '.NetworkInterfaceTrafficMode' , NetworkInterfaces [depth1 ].get ('NetworkInterfaceTrafficMode' ))
194208 def get_ImageId (self ): # String
195209 return self .get_query_params ().get ('ImageId' )
196210
Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ def get_ScalingGroupId(self): # String
4242
4343 def set_ScalingGroupId (self , ScalingGroupId ): # String
4444 self .add_query_param ('ScalingGroupId' , ScalingGroupId )
45+ def get_LifecycleHookContext (self ): # Struct
46+ return self .get_query_params ().get ('LifecycleHookContext' )
47+
48+ def set_LifecycleHookContext (self , LifecycleHookContext ): # Struct
49+ self .add_query_param ("LifecycleHookContext" , json .dumps (LifecycleHookContext ))
4550 def get_SyncActivity (self ): # Boolean
4651 return self .get_query_params ().get ('SyncActivity' )
4752
@@ -57,6 +62,11 @@ def get_ResourceOwnerAccount(self): # String
5762
5863 def set_ResourceOwnerAccount (self , ResourceOwnerAccount ): # String
5964 self .add_query_param ('ResourceOwnerAccount' , ResourceOwnerAccount )
65+ def get_ActivityMetadata (self ): # String
66+ return self .get_query_params ().get ('ActivityMetadata' )
67+
68+ def set_ActivityMetadata (self , ActivityMetadata ): # String
69+ self .add_query_param ('ActivityMetadata' , ActivityMetadata )
6070 def get_AdjustmentType (self ): # String
6171 return self .get_query_params ().get ('AdjustmentType' )
6272
You can’t perform that action at this time.
0 commit comments