File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -259,23 +259,6 @@ def get_vpc_endpoint_service_configuration(self, vpc_endpoint_service_configurat
259
259
except self .ec2_client .exceptions .ClientError :
260
260
return None
261
261
262
- def assert_vpc_endpoint_service_configuration (self , vpc_endpoint_service_configuration_id : str , exists = True ):
263
- res_found = False
264
- try :
265
- aws_res = self .ec2_client .describe_vpc_endpoint_service_configurations (ServiceIds = [vpc_endpoint_service_configuration_id ])
266
- res_found = len (aws_res ["ServiceConfigurations" ]) > 0
267
- except self .ec2_client .exceptions .ClientError :
268
- pass
269
- assert res_found is exists
270
- def get_vpc_endpoint_service_configuration (self , vpc_endpoint_service_configuration_id : str ) -> Union [None , Dict ]:
271
- try :
272
- aws_res = self .ec2_client .describe_vpc_endpoint_service_configurations (ServiceIds = [vpc_endpoint_service_configuration_id ])
273
- if len (aws_res ["ServiceConfigurations" ]) > 0 :
274
- return aws_res ["ServiceConfigurations" ][0 ]
275
- return None
276
- except self .ec2_client .exceptions .ClientError :
277
- return None
278
-
279
262
def assert_vpc_endpoint_service_configuration (self , vpc_endpoint_service_configuration_id : str , exists = True ):
280
263
res_found = False
281
264
try :
You can’t perform that action at this time.
0 commit comments