def aws_from_configuration(region, zone, access_key_id, secret_access_key, cluster_id, session_token=None, validate_region=True):
 try:
  return EBSBlockDeviceAPI(ec2_client=ec2_client(region=region, zone=zone, access_key_id=access_key_id, secret_access_key=secret_access_key, session_token=session_token, validate_region=validate_region), cluster_id=cluster_id)
 except (InvalidRegionError, InvalidZoneError) as e:
  raise StorageInitializationError(StorageInitializationError.CONFIGURATION_ERROR, *e.args)

def aws_from_configuration ( region , zone , access_key_id , secret_access_key , cluster_id , session_token = None , validate_region = True ) : try : return EBSBlockDeviceAPI ( ec2_client = ec2_client ( region = region , zone = zone , access_key_id = access_key_id , secret_access_key = secret_access_key , session_token = session_token , validate_region = validate_region ) , cluster_id = cluster_id ) except ( InvalidRegionError , InvalidZoneError ) as e : raise StorageInitializationError ( StorageInitializationError . CONFIGURATION_ERROR , * e . args )
build an ebsblockdeviceapi instance using configuration and credentials .