def create_file_system(name, performance_mode='generalPurpose', keyid=None, key=None, profile=None, region=None, **kwargs):
 import os
 import base64
 creation_token = base64.b64encode(os.urandom(46), ['-', '_'])
 tags = {'Key': 'Name', 'Value': name}
 client = _get_conn(key=key, keyid=keyid, profile=profile, region=region)
 response = client.create_file_system(CreationToken=creation_token, PerformanceMode=performance_mode)
 if ('FileSystemId' in response):
  client.create_tags(FileSystemId=response['FileSystemId'], Tags=tags)
 if ('Name' in response):
  response['Name'] = name
 return response

def create_file_system ( name , performance_mode = 'generalPurpose' , keyid = None , key = None , profile = None , region = None , ** kwargs ) : import os import base64 creation_token = base64 . b64encode ( os . urandom ( 46 ) , [ '-' , '_' ] ) tags = { 'Key' : 'Name' , 'Value' : name } client = _get_conn ( key = key , keyid = keyid , profile = profile , region = region ) response = client . create_file_system ( CreationToken = creation_token , PerformanceMode = performance_mode ) if ( 'FileSystemId' in response ) : client . create_tags ( FileSystemId = response [ 'FileSystemId' ] , Tags = tags ) if ( 'Name' in response ) : response [ 'Name' ] = name return response
creates a new .