in source/lib/efs.py [0:0]
def performance_mode(self, efs_id):
# Check the EFS performance mode
try:
client = boto3.client('efs')
self.logger.debug('Checking EFS Performance Mode')
response = client.describe_file_systems(
MaxItems=2,
FileSystemId=efs_id
)
return (response['FileSystems'][0]['PerformanceMode'])
except Exception as e:
self.logger.error("unhandled exception: EFS_performance_mode", exc_info=1)
return 'unhandled exception'