@@ -85,9 +85,9 @@ def get_all_vpcs(self, vpc_ids=None, filters=None, dry_run=False):
85
85
:type vpc_ids: list
86
86
:param vpc_ids: A list of strings with the desired VPC ID's
87
87
88
- :type filters: list of tuples
89
- :param filters: A list of tuples containing filters. Each tuple
90
- consists of a filter key and a filter value.
88
+ :type filters: list of tuples or dict
89
+ :param filters: A list of tuples or dict containing filters. Each tuple
90
+ or dict item consists of a filter key and a filter value.
91
91
Possible filter keys are:
92
92
93
93
* *state* - a list of states of the VPC (pending or available)
@@ -104,7 +104,7 @@ def get_all_vpcs(self, vpc_ids=None, filters=None, dry_run=False):
104
104
if vpc_ids :
105
105
self .build_list_params (params , vpc_ids , 'VpcId' )
106
106
if filters :
107
- self .build_filter_params (params , dict ( filters ) )
107
+ self .build_filter_params (params , filters )
108
108
if dry_run :
109
109
params ['DryRun' ] = 'true'
110
110
return self .get_list ('DescribeVpcs' , params , [('item' , VPC )])
@@ -204,9 +204,9 @@ def get_all_route_tables(self, route_table_ids=None, filters=None,
204
204
:param route_table_ids: A list of strings with the desired route table
205
205
IDs.
206
206
207
- :type filters: list of tuples
208
- :param filters: A list of tuples containing filters. Each tuple
209
- consists of a filter key and a filter value.
207
+ :type filters: list of tuples or dict
208
+ :param filters: A list of tuples or dict containing filters. Each tuple
209
+ or dict item consists of a filter key and a filter value.
210
210
211
211
:type dry_run: bool
212
212
:param dry_run: Set to True if the operation should not actually run.
@@ -218,7 +218,7 @@ def get_all_route_tables(self, route_table_ids=None, filters=None,
218
218
if route_table_ids :
219
219
self .build_list_params (params , route_table_ids , "RouteTableId" )
220
220
if filters :
221
- self .build_filter_params (params , dict ( filters ) )
221
+ self .build_filter_params (params , filters )
222
222
if dry_run :
223
223
params ['DryRun' ] = 'true'
224
224
return self .get_list ('DescribeRouteTables' , params ,
@@ -516,9 +516,9 @@ def get_all_network_acls(self, network_acl_ids=None, filters=None):
516
516
:param network_acl_ids: A list of strings with the desired network ACL
517
517
IDs.
518
518
519
- :type filters: list of tuples
520
- :param filters: A list of tuples containing filters. Each tuple
521
- consists of a filter key and a filter value.
519
+ :type filters: list of tuples or dict
520
+ :param filters: A list of tuples or dict containing filters. Each tuple
521
+ or dict item consists of a filter key and a filter value.
522
522
523
523
:rtype: list
524
524
:return: A list of :class:`boto.vpc.networkacl.NetworkAcl`
@@ -527,7 +527,7 @@ def get_all_network_acls(self, network_acl_ids=None, filters=None):
527
527
if network_acl_ids :
528
528
self .build_list_params (params , network_acl_ids , "NetworkAclId" )
529
529
if filters :
530
- self .build_filter_params (params , dict ( filters ) )
530
+ self .build_filter_params (params , filters )
531
531
return self .get_list ('DescribeNetworkAcls' , params ,
532
532
[('item' , NetworkAcl )])
533
533
@@ -779,9 +779,9 @@ def get_all_internet_gateways(self, internet_gateway_ids=None,
779
779
:type internet_gateway_ids: list
780
780
:param internet_gateway_ids: A list of strings with the desired gateway IDs.
781
781
782
- :type filters: list of tuples
783
- :param filters: A list of tuples containing filters. Each tuple
784
- consists of a filter key and a filter value.
782
+ :type filters: list of tuples or dict
783
+ :param filters: A list of tuples or dict containing filters. Each tuple
784
+ or dict item consists of a filter key and a filter value.
785
785
786
786
:type dry_run: bool
787
787
:param dry_run: Set to True if the operation should not actually run.
@@ -793,7 +793,7 @@ def get_all_internet_gateways(self, internet_gateway_ids=None,
793
793
self .build_list_params (params , internet_gateway_ids ,
794
794
'InternetGatewayId' )
795
795
if filters :
796
- self .build_filter_params (params , dict ( filters ) )
796
+ self .build_filter_params (params , filters )
797
797
if dry_run :
798
798
params ['DryRun' ] = 'true'
799
799
return self .get_list ('DescribeInternetGateways' , params ,
@@ -896,9 +896,9 @@ def get_all_customer_gateways(self, customer_gateway_ids=None,
896
896
:param customer_gateway_ids: A list of strings with the desired
897
897
CustomerGateway ID's.
898
898
899
- :type filters: list of tuples
900
- :param filters: A list of tuples containing filters. Each tuple
901
- consists of a filter key and a filter value.
899
+ :type filters: list of tuples or dict
900
+ :param filters: A list of tuples or dict containing filters. Each tuple
901
+ or dict item consists of a filter key and a filter value.
902
902
Possible filter keys are:
903
903
904
904
- *state*, the state of the CustomerGateway
@@ -918,7 +918,7 @@ def get_all_customer_gateways(self, customer_gateway_ids=None,
918
918
self .build_list_params (params , customer_gateway_ids ,
919
919
'CustomerGatewayId' )
920
920
if filters :
921
- self .build_filter_params (params , dict ( filters ) )
921
+ self .build_filter_params (params , filters )
922
922
923
923
if dry_run :
924
924
params ['DryRun' ] = 'true'
@@ -985,9 +985,9 @@ def get_all_vpn_gateways(self, vpn_gateway_ids=None, filters=None,
985
985
:type vpn_gateway_ids: list
986
986
:param vpn_gateway_ids: A list of strings with the desired VpnGateway ID's
987
987
988
- :type filters: list of tuples
989
- :param filters: A list of tuples containing filters. Each tuple
990
- consists of a filter key and a filter value.
988
+ :type filters: list of tuples or dict
989
+ :param filters: A list of tuples or dict containing filters. Each tuple
990
+ or dict item consists of a filter key and a filter value.
991
991
Possible filter keys are:
992
992
993
993
- *state*, a list of states of the VpnGateway
@@ -1006,7 +1006,7 @@ def get_all_vpn_gateways(self, vpn_gateway_ids=None, filters=None,
1006
1006
if vpn_gateway_ids :
1007
1007
self .build_list_params (params , vpn_gateway_ids , 'VpnGatewayId' )
1008
1008
if filters :
1009
- self .build_filter_params (params , dict ( filters ) )
1009
+ self .build_filter_params (params , filters )
1010
1010
if dry_run :
1011
1011
params ['DryRun' ] = 'true'
1012
1012
return self .get_list ('DescribeVpnGateways' , params ,
@@ -1109,9 +1109,9 @@ def get_all_subnets(self, subnet_ids=None, filters=None, dry_run=False):
1109
1109
:type subnet_ids: list
1110
1110
:param subnet_ids: A list of strings with the desired Subnet ID's
1111
1111
1112
- :type filters: list of tuples
1113
- :param filters: A list of tuples containing filters. Each tuple
1114
- consists of a filter key and a filter value.
1112
+ :type filters: list of tuples or dict
1113
+ :param filters: A list of tuples or dict containing filters. Each tuple
1114
+ or dict item consists of a filter key and a filter value.
1115
1115
Possible filter keys are:
1116
1116
1117
1117
- *state*, a list of states of the Subnet
@@ -1132,7 +1132,7 @@ def get_all_subnets(self, subnet_ids=None, filters=None, dry_run=False):
1132
1132
if subnet_ids :
1133
1133
self .build_list_params (params , subnet_ids , 'SubnetId' )
1134
1134
if filters :
1135
- self .build_filter_params (params , dict ( filters ) )
1135
+ self .build_filter_params (params , filters )
1136
1136
if dry_run :
1137
1137
params ['DryRun' ] = 'true'
1138
1138
return self .get_list ('DescribeSubnets' , params , [('item' , Subnet )])
@@ -1192,9 +1192,9 @@ def get_all_dhcp_options(self, dhcp_options_ids=None, filters=None, dry_run=Fals
1192
1192
:type dhcp_options_ids: list
1193
1193
:param dhcp_options_ids: A list of strings with the desired DhcpOption ID's
1194
1194
1195
- :type filters: list of tuples
1196
- :param filters: A list of tuples containing filters. Each tuple
1197
- consists of a filter key and a filter value.
1195
+ :type filters: list of tuples or dict
1196
+ :param filters: A list of tuples or dict containing filters. Each tuple
1197
+ or dict item consists of a filter key and a filter value.
1198
1198
1199
1199
:type dry_run: bool
1200
1200
:param dry_run: Set to True if the operation should not actually run.
@@ -1206,7 +1206,7 @@ def get_all_dhcp_options(self, dhcp_options_ids=None, filters=None, dry_run=Fals
1206
1206
if dhcp_options_ids :
1207
1207
self .build_list_params (params , dhcp_options_ids , 'DhcpOptionsId' )
1208
1208
if filters :
1209
- self .build_filter_params (params , dict ( filters ) )
1209
+ self .build_filter_params (params , filters )
1210
1210
if dry_run :
1211
1211
params ['DryRun' ] = 'true'
1212
1212
return self .get_list ('DescribeDhcpOptions' , params ,
@@ -1339,9 +1339,9 @@ def get_all_vpn_connections(self, vpn_connection_ids=None, filters=None,
1339
1339
:type vpn_connection_ids: list
1340
1340
:param vpn_connection_ids: A list of strings with the desired VPN_CONNECTION ID's
1341
1341
1342
- :type filters: list of tuples
1343
- :param filters: A list of tuples containing filters. Each tuple
1344
- consists of a filter key and a filter value.
1342
+ :type filters: list of tuples or dict
1343
+ :param filters: A list of tuples or dict containing filters. Each tuple
1344
+ or dict item consists of a filter key and a filter value.
1345
1345
Possible filter keys are:
1346
1346
1347
1347
- *state*, a list of states of the VPN_CONNECTION
@@ -1363,7 +1363,7 @@ def get_all_vpn_connections(self, vpn_connection_ids=None, filters=None,
1363
1363
self .build_list_params (params , vpn_connection_ids ,
1364
1364
'VpnConnectionId' )
1365
1365
if filters :
1366
- self .build_filter_params (params , dict ( filters ) )
1366
+ self .build_filter_params (params , filters )
1367
1367
if dry_run :
1368
1368
params ['DryRun' ] = 'true'
1369
1369
return self .get_list ('DescribeVpnConnections' , params ,
0 commit comments